protected Service restoreDelegatedAuthenticationRequest(final RequestContext requestContext,
                                                            final WebContext webContext,
                                                            final Optional<TransientSessionTicket> ticket,
                                                            final Client client) {
        getWebflowStateContributors().forEach(Unchecked.consumer(contrib -> contrib.restore(requestContext, webContext, ticket, client)));
        return ticket
            .map(TransientSessionTicket::getService)
            .orElseGet(() -> {
                val context = (JEEContext) webContext;
                return configContext.getArgumentExtractor().extractService(context.getNativeRequest());
            });
    }
This is {@link DefaultDelegatedClientAuthenticationWebflowManager}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-pac4j-core/src/main/java/org/apereo/cas/web/flow/DefaultDelegatedClientAuthenticationWebflowManager.java