@Override
    public boolean submit(final RequestContext requestContext) {
        val storageInfo = getKeyAndMap(requestContext);
        val key = storageInfo.getLeft();
        val map = storageInfo.getRight();
        map.put(key, Boolean.TRUE);
        return map.containsKey(key);
    }
This is {@link DefaultAcceptableUsagePolicyRepository}.

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