protected String generateToken(final WebApplicationService service, final Map<String, String> parameters) {
        return FunctionUtils.doUnchecked(() -> {
            val ticketId = parameters.get(CasProtocolConstants.PARAMETER_TICKET);
            return tokenTicketBuilder.build(ticketId, service);
        });
    }
This is {@link TokenWebApplicationServiceResponseBuilder}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-token-tickets/src/main/java/org/apereo/cas/token/authentication/principal/TokenWebApplicationServiceResponseBuilder.java