@Override
    public Optional<DelegatedClientIdentityProviderConfiguration> select(
        final RequestContext context,
        final WebApplicationService service,
        final Set<DelegatedClientIdentityProviderConfiguration> providers) throws Throwable {
        val registeredService = servicesManager.findServiceBy(service);
        val args = new Object[]{context, service, registeredService, providers, applicationContext, LOGGER};
        return Optional.ofNullable(watchableScript.execute(args, DelegatedClientIdentityProviderConfiguration.class));
    }
This is {@link GroovyDelegatedClientIdentityProviderRedirectionStrategy}.

@author Misagh Moayyed
@since 6.4.0
support/cas-server-support-pac4j-core/src/main/java/org/apereo/cas/pac4j/client/GroovyDelegatedClientIdentityProviderRedirectionStrategy.java