protected function _sanitizeFormat(AnConfig $config)
    {
        $property = $config->property;
        $value = $config->value;
        $filter = $config->options;

        if (!empty($value) && $property->isAttribute() && $property->isScalar()) {
            $value = $this->getFilter($filter)->sanitize($value);
        }

        return $value;
    }