@Override
    public Ticket addTicket(final Ticket ticket) throws Exception {
        return ticket != null && !ticket.isExpired() ? addSingleTicket(ticket) : null;
    }
Base ticket registry class that implements common ticket-related ops.

@author Scott Battaglia
@since 3.0.0
core/cas-server-core-tickets-api/src/main/java/org/apereo/cas/ticket/registry/AbstractTicketRegistry.java