protected function getHashId(Document $document, $sm) 
	{
		$main = $sm->get('neobazaar.service.main');
		$documentRepository = $main->getDocumentEntityRepository();
		return $documentRepository->getEncryptedId($document->getDocumentId());
	}