private static ConsentDecision mapFromJson(final String json) {
        return FunctionUtils.doAndHandle(() -> {
            LOGGER.trace("Mapping JSON value [{}] to consent object", json);
            return MAPPER.readValue(JsonValue.readHjson(json).toString(), ConsentDecision.class);
        }, throwable -> null).get();
    }
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