@Override
    @JsonIgnore
    public int size() {
        return policies.size();
    }
Add policy.

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