private static String mapToJson(final ConsentDecision consent) throws Exception {
        val json = MAPPER.writeValueAsString(consent);
        LOGGER.trace("Transformed consent object [{}] as JSON value [{}]", consent, json);
        return json;
    }
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