private static TransientSessionTicketImpl createTransientSessionTicket(final String id,
                                                                           final ExpirationPolicy expirationPolicy,
                                                                           final Service service,
                                                                           final Map<String, Serializable> properties) {
        val ticket = new TransientSessionTicketImpl(id, expirationPolicy, service, properties);
        FunctionUtils.doIfNotNull(service, __ -> ticket.setTenantId(service.getTenant()));
        return ticket;
    }
This is {@link DefaultTransientSessionTicketFactory}.

@author Misagh Moayyed
@since 5.3.0
core/cas-server-core-tickets-api/src/main/java/org/apereo/cas/ticket/factory/DefaultTransientSessionTicketFactory.java