protected Event loadSurrogateAccounts(final RequestContext requestContext) throws Throwable {
        LOGGER.trace("Attempting to load surrogates...");
        val eventFactorySupport = eventFactory;
        if (loadSurrogates(requestContext)) {
            val accounts = WebUtils.getSurrogateAuthenticationAccounts(requestContext);
            val service = Optional.ofNullable(WebUtils.getService(requestContext));
            if (surrogateService.isWildcardedAccount(accounts, service)) {
                return eventFactorySupport.event(this, CasWebflowConstants.TRANSITION_ID_SURROGATE_WILDCARD_VIEW);
            }
            return eventFactorySupport.event(this, CasWebflowConstants.TRANSITION_ID_SURROGATE_VIEW);
        }
        return eventFactorySupport.event(this, CasWebflowConstants.TRANSITION_ID_SKIP_SURROGATE);
    }
This is {@link LoadSurrogatesListAction}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-surrogate-webflow/src/main/java/org/apereo/cas/web/flow/action/LoadSurrogatesListAction.java