protected function getAttributeFromFilterOperation($operation)
    {
        $attribute = null;
        if (!empty($operation['property'])) {
            $attribute = $this->getMetaModel()->getAttribute($operation['property']);
        }

        if ($attribute === null) {
            throw new \InvalidArgumentException('Attribute ' . $operation['property'] . ' not found.');
        }

        return $attribute;
    }