@Override
    public boolean supports(final Class<? extends Credential> clazz) {
        return FunctionUtils.doUnchecked(() -> {
            val args = new Object[]{clazz, LOGGER};
            return watchableScript.execute("supportsCredentialClass", Boolean.class, args);
        });
    }
This is {@link GroovyAuthenticationHandler}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-generic/src/main/java/org/apereo/cas/adaptors/generic/GroovyAuthenticationHandler.java