@Override
    public Optional<String> getExternalScript(final String input) {
        val matcherFile = ScriptingUtils.getMatcherForExternalGroovyScript(input);
        return matcherFile.find() ? Optional.of(matcherFile.group()) : 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