@Override
    public boolean isServiceAccessAllowed(final RegisteredService registeredService, final Service service) {
        try {
            buildGroovyAccessStrategyInstanceIfNeeded();
            return Boolean.TRUE.equals(watchableScript.execute("isServiceAccessAllowed", Boolean.class, registeredService, service));
        } catch (final Throwable throwable) {
            throw UnauthorizedServiceException.wrap(throwable);
        }
    }
This is {@link GroovyRegisteredServiceAccessStrategy}.

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