/**
  * @inheritdoc
  */
 public function getBySession(SessionEntity $entity)
 {
     $client = Client::findBySessionId($entity->getId());
     if ($client === null) {
         throw new ClientNotFound();
     }
     return $this->createEntity($client);
 }