protected Boolean getGroovyScriptResult(final RegisteredService registeredService, final AuthenticationAwareTicket ticketState) {
        return FunctionUtils.doAndHandle(() -> {
            val args = CollectionUtils.<String, Object>wrap("registeredService", registeredService,
                "authentication", ticketState.getAuthentication(), "logger", LOGGER);
            executableScript.setBinding(args);
            return executableScript.execute(args.values().toArray(), Boolean.class);
        }, e -> Boolean.FALSE).get();
    }
This is {@link GroovyRegisteredServiceSingleSignOnParticipationPolicy}.

@author Misagh Moayyed
@since 7.1.0
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/GroovyRegisteredServiceSingleSignOnParticipationPolicy.java