public void addPolicy(final RegisteredServiceConsentPolicy policy) {
        if (BeanSupplier.isNotProxy(policy)) {
            policies.add(policy);
            AnnotationAwareOrderComparator.sortIfNecessary(this.policies);
        }
    }
Add policy.

@param policy the policy
core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/services/consent/ChainingRegisteredServiceConsentPolicy.java