@Override
    public ResponseEntity<String> build(final String ticketGrantingTicket,
                                        final WebApplicationService service,
                                        final AuthenticationResult authenticationResult) throws Throwable {
        val serviceTicketId = uniqueTicketIdGenerator.getNewTicketId(ServiceTicket.PREFIX);
        return new ResponseEntity<>(serviceTicketId, HttpStatus.OK);
    }
This is {@link SamlRestServiceTicketResourceEntityResponseFactory}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/authentication/SamlRestServiceTicketResourceEntityResponseFactory.java