@Override
    public Optional<String> getInlineScript(final String input) {
        val matcherInline = ScriptingUtils.getMatcherForInlineGroovyScript(input);
        return matcherInline.find() ? Optional.of(matcherInline.group(1)) : Optional.empty();
    }
This is {@link GroovyExecutableCompiledScriptFactory}.

@author Misagh Moayyed
@since 7.1.0
core/cas-server-core-scripting/src/main/java/org/apereo/cas/util/scripting/GroovyExecutableCompiledScriptFactory.java