/**
  * @param TicketKey $ticketKey
  * @return Ticket
  *
  * @throws TicketNotFoundException
  */
 private function loadTicketByTicketKey(TicketKey $ticketKey)
 {
     $ticket = $this->ticketRepository->getByTicketKey($ticketKey);
     if (is_null($ticket)) {
         throw new TicketNotFoundException('Ticket loading failed, ticket not found.');
     }
     $this->removePrivateComments($ticket);
     return $ticket;
 }