private void writeAccountToJsonResource() {
        Unchecked.consumer((CheckedConsumer<Resource>) resource -> {
            MAPPER.writerWithDefaultPrettyPrinter().writeValue(resource.getFile(), getConsentDecisions());
            readDecisionsFromJsonResource();
        }).accept(this.jsonResource);
    }
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