private function findUser($credentials)
 {
     $user = $this->user->findByCredentials((array) $credentials);
     if ($user) {
         return $user;
     }
     throw new UserNotFoundException();
 }