private static Set<String> mergeDecision(final LdapAttribute ldapConsent,
                                             final ConsentDecision decision) throws Exception {
        if (decision.getId() < 0) {
            decision.setId(System.currentTimeMillis());
        }

        if (ldapConsent != null) {
            val result = removeDecision(ldapConsent, decision.getId());
            val json = mapToJson(decision);
            result.add(json);
            LOGGER.debug("Merged consent decision [{}] with LDAP attribute [{}]", decision, ldapConsent.getName());
            return CollectionUtils.wrap(result);
        }
        val json = mapToJson(decision);
        val result = new HashSet<String>(1);
        result.add(json);
        return result;
    }
This is {@link LdapConsentRepository}.

@author Arnold Bergner
@since 5.2.0
support/cas-server-support-consent-ldap/src/main/java/org/apereo/cas/consent/LdapConsentRepository.java