@Override
    public String serializeTicket(final Ticket ticket) {
        val serializer = Objects.requireNonNull(ticketSerializationExecutionPlan.getTicketSerializer(ticket),
            () -> "Unable to find ticket serializer for " + ticket.getId());
        return serializer.toString(ticket);
    }
This is {@link DefaultTicketStringSerializationManager}.

@author Misagh Moayyed
@since 6.1.0
core/cas-server-core-tickets-api/src/main/java/org/apereo/cas/ticket/serialization/DefaultTicketStringSerializationManager.java