@Override
    public Boolean accept(final String typeName) {
        val scriptFactory = ExecutableCompiledScriptFactory.getExecutableCompiledScriptFactory();
        if (scriptFactory.isInlineScript(typeName)) {
            val inlineGroovy = scriptFactory.getInlineScript(typeName).orElseThrow();
            val cacheMgr = ApplicationContextProvider.getScriptResourceCacheManager().orElseThrow(() ->
                new RuntimeException("No Groovy script cache manager is available"));
            this.script = cacheMgr.resolveScriptableResource(inlineGroovy, inlineGroovy);
            return true;
        }
        return false;
    }
This is {@link GroovyAttributeConverter}.

@author Misagh Moayyed
@since 6.5.0
support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/attributes/GroovyAttributeConverter.java