private void initializeWatchableScriptIfNeeded() throws Exception {
        if (this.executableScript == null) {
            val resource = ResourceUtils.getRawResourceFrom(script);
            val scriptFactory = ExecutableCompiledScriptFactory.getExecutableCompiledScriptFactory();
            this.executableScript = scriptFactory.fromResource(resource);
        }
    }
This is {@link GroovyScriptAuthenticationPolicy}.

@author Misagh Moayyed
@since 5.2.0
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/policy/GroovyScriptAuthenticationPolicy.java