public function getSerilizer()
    {
        if (!$this->_serializer instanceof AnDomainSerializerAbstract) {
            if (!$this->_serializer instanceof AnServiceIdentifier) {
                $this->setSerializer($this->_serializer);
            }

            $this->_serializer = $this->getService($this->_serializer);
        }

        return $this->_serializer;
    }