/**
  * Retrieves Snapshot with id $id or throws an exception if it doesn't exist.
  *
  * @param $id
  *
  * @return SnapshotInterface
  *
  * @throws NotFoundHttpException
  */
 protected function getSnapshot($id)
 {
     $snapshot = $this->snapshotManager->findOneBy(array('id' => $id));
     if (null === $snapshot) {
         throw new NotFoundHttpException(sprintf('Snapshot (%d) not found', $id));
     }
     return $snapshot;
 }