protected function getOptionsArray()
{
$this->validateCurrentAttribute();
$options = $this->getArrayValue($this->options, $this->getAttribute());
if (!isset($options['filter']) || !is_array($options['filter'])) {
throw new AttributeConverterException(sprintf('Filter not valid for "%s".', $this->getAttribute()));
}
if (!isset($options['attribute'])) {
throw new AttributeConverterException(sprintf('Attribute to search on not defined for "%s"', $this->getAttribute()));
}
return $options;
}