public static <T> T getAcceptableUsagePolicyTermsFromFlowScope(final RequestContext requestContext, final Class<T> clazz) {
        if (requestContext.getFlowScope().contains("aupPolicy")) {
            return requestContext.getFlowScope().get("aupPolicy", clazz);
        }
        return null;
    }
Gets acceptable usage policy terms from flow scope.

@param <T>            the type parameter
@param requestContext the request context
@param clazz          the clazz
@return the acceptable usage policy terms from flow scope
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java