@Override
    public Set<Event> resolveInternal(final RequestContext context) throws Throwable {
        if (isRequestAskingForServiceTicket(context)) {
            LOGGER.trace("Authentication request is asking for service tickets");
            val source = grantServiceTicket(context);
            return Optional.ofNullable(source).map(CollectionUtils::wrapSet).orElse(null);
        }
        return null;
    }
This is {@link ServiceTicketRequestWebflowEventResolver}
that creates the next event responding to requests that are service-ticket requests.

@author Misagh Moayyed
@since 5.0.0
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/resolver/impl/ServiceTicketRequestWebflowEventResolver.java