public function store($hash, $data)
 {
     $classMetadata = $this->metadataManager->loadByClassname($data['class']);
     $this->storageAdapter->store($hash, $data, $classMetadata->getContext());
     $this->searchAdapter->indexObject($hash, $data['data'], $classMetadata);
     return $data;
 }