@Override
    public Resource getResource() {
        return new ByteArrayResource(script.getBytes(StandardCharsets.UTF_8));
    }
This is {@link GroovyShellScript}.

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