@Override
    public boolean submit(final RequestContext requestContext) throws Throwable {
        val principal = WebUtils.getAuthentication(requestContext).getPrincipal();
        return watchableScript.execute("submit", Boolean.class, requestContext,
            applicationContext, principal, LOGGER);
    }
This is {@link GroovyAcceptableUsagePolicyRepository}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-aup-core/src/main/java/org/apereo/cas/aup/GroovyAcceptableUsagePolicyRepository.java