private static Map<String, List<Object>> getCombinedTicketAttributes(final Ticket ticket) {
        if (ticket instanceof final AuthenticationAwareTicket authnTicket) {
            val authentication = authnTicket.getAuthentication();
            if (authentication != null) {
                val attributes = new HashMap<>(authentication.getAttributes());
                val principal = authentication.getPrincipal();
                return CoreAuthenticationUtils.mergeAttributes(attributes, principal.getAttributes());
            }
        }
        return new HashMap<>();
    }
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