code: protected void addTicketToRegistry(final Ticket ticket, final TicketGrantingTicket ticketGrantingTicket) {
          LOGGER.debug("Adding ticket [{}] to registry", ticket);
          this.ticketRegistry.addTicket(ticket);
          if (ticketGrantingTicket != null) {
              LOGGER.debug("Updating parent ticket-granting ticket [{}]", ticketGrantingTicket);
              this.ticketRegistry.updateTicket(ticketGrantingTicket);
          }
      }
docs: Add ticket to registry.
  
  @param ticket               the ticket
  @param ticketGrantingTicket the ticket granting ticket