/** * @return DocumentStore */ public function getDocumentStore() { if (null === $this->documentStore) { $this->setDocumentStore(DocumentStore::getSharedInstance()); } return $this->documentStore; }