/**
  * Releases a lock on the given document.
  *
  * @param object $document
  */
 public function unlock($document)
 {
     $this->unitOfWork->unlock($document);
 }