public function getDocumentManager()
    {
        if (null === $this->dm) {
            $this->dm = $this->getServiceLocator()->get('doctrine.documentmanager.odm_default');
        }

        return $this->dm;
    }