/** * @param MessageParserException $exception * * @return UndefinedApplicationUser */ private function getMessageUser(MessageParserException $exception) { return new UndefinedApplicationUser($exception->getUser()->getAccount()); }