protected TicketDefinition buildTicketDefinition(final TicketCatalog plan, final String prefix,
                                                     final Class<? extends Ticket> api, final Class<? extends Ticket> impl, final int order) {
        if (plan.contains(prefix)) {
            return plan.find(prefix);
        }
        return new DefaultTicketDefinition(impl, api, prefix, order);
    }
This is {@link BaseTicketCatalogConfigurer}.

@author Misagh Moayyed
@since 5.1.0
core/cas-server-core-tickets-api/src/main/java/org/apereo/cas/ticket/BaseTicketCatalogConfigurer.java