private Set<ConsentDecision> readDecisionsFromJsonResource() {
        return FunctionUtils.doAndHandle((CheckedSupplier<Set<ConsentDecision>>) () -> {
            if (ResourceUtils.doesResourceExist(jsonResource)) {
                try (val reader = new InputStreamReader(jsonResource.getInputStream(), StandardCharsets.UTF_8)) {
                    val personList = new TypeReference<Set<ConsentDecision>>() {
                    };
                    return MAPPER.readValue(JsonValue.readHjson(reader).toString(), personList);
                }
            }
            return new LinkedHashSet<>();
        }, throwable -> new LinkedHashSet<>()).get();
    }
This is {@link JsonConsentRepository}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-consent-core/src/main/java/org/apereo/cas/consent/JsonConsentRepository.java