docs: @Synchronized
      protected void verifyTicketState(final Ticket ticket, final String id, final Class clazz) {
          if (ticket == null) {
              LOGGER.debug("Ticket [{}] by type [{}] cannot be found in the ticket registry.", id, clazz != null ? clazz.getSimpleName() : "unspecified");
              throw new InvalidTicketException(id);
          }
          if (ticket.isExpired()) {
              deleteTicket(id);
              LOGGER.debug("Ticket [{}] has expired and is now deleted from the ticket registry.", ticket);
              throw new InvalidTicketException(id);
          }
      }