@Override
    protected Event doExecuteInternal(final RequestContext requestContext) {
        val authentication = WebUtils.getAuthentication(requestContext);
        val principal = authentication.getPrincipal();
        val decisions = consentEngine.getConsentRepository().findConsentDecisions(principal.getId());
        val resolved = decisions
            .stream()
            .map(Unchecked.function(d -> {
                val decision = AccountProfileConsentDecision.builder()
                    .id(d.getId())
                    .service(d.getService())
                    .createdDateTime(d.getCreatedDate())
                    .attributes(consentEngine.resolveConsentableAttributesFrom(d))
                    .options("screen.account.consent." + d.getOptions().name().toLowerCase(Locale.ENGLISH))
                    .reminder(String.format("%s - %s", d.getReminder(), d.getReminderTimeUnit()))
                    .build();
                decision.setJson(MAPPER.writerWithDefaultPrettyPrinter().writeValueAsString(decision));
                return decision;
            }))
            .collect(Collectors.toList());
        if (!resolved.isEmpty()) {
            requestContext.getFlowScope().put("consentDecisions", resolved);
        }
        return null;
    }
This is {@link ConsentAccountProfilePrepareAction}.

@author Misagh Moayyed
@since 6.6.0
support/cas-server-support-consent-webflow/src/main/java/org/apereo/cas/web/flow/ConsentAccountProfilePrepareAction.java