private static Set<String> removeDecisions(final LdapAttribute ldapConsent, final Predicate<ConsentDecision> filter) {
        if (ldapConsent.size() != 0) {
            return ldapConsent.getStringValues()
                .stream()
                .map(LdapConsentRepository::mapFromJson)
                .filter(Objects::nonNull)
                .filter(filter)
                .map(Unchecked.function(LdapConsentRepository::mapToJson))
                .filter(Objects::nonNull)
                .collect(Collectors.toSet());
        }
        return new HashSet<>();
    }
Removes decision from ldap attribute set.

@param ldapConsent the ldap attribute holding consent decisions
@param decisionId  the decision Id
@return the new decision set
support/cas-server-support-consent-ldap/src/main/java/org/apereo/cas/consent/LdapConsentRepository.java