@Override
    public Collection<TicketDefinition> findAll() {
        val list = new ArrayList<>(ticketMetadataMap.values());
        AnnotationAwareOrderComparator.sort(list);
        LOGGER.trace("Located all registered and known sorted ticket definitions [{}]", list);
        return list;
    }
This is {@link DefaultTicketCatalog}.

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