@Override
    public boolean shouldResumeOnFailure(final Throwable failure) {
        val supplier = Unchecked.supplier(() -> {
            initializeWatchableScriptIfNeeded();
            val args = CollectionUtils.wrap("failure", failure, "logger", LOGGER);
            executableScript.setBinding(args);
            return executableScript.execute("shouldResumeOnFailure", Boolean.class, args.values().toArray());
        });
        val result = supplier.get();
        Assert.notNull(result, "Authentication policy result cannot be null");
        return result;
    }
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