protected function getConverterWithOptions($converterName)
{
$converter = AttributeConverterFactory::get($converterName);
if (isset($this->options[$converterName])) {
$converter->setOptions($this->options[$converterName]);
}
if ($this->connection) {
$converter->setLdapConnection($this->connection);
}
if ($this->dn !== null) {
$converter->setDn($this->dn);
}
if ($converter instanceof OperationGeneratorInterface) {
$converter->setOperation($this->operation);
}
$converter->setOperationType($this->type);
return $converter;
}