@Override
    public ConsentDecision update(final ConsentDecision consent, final Map<String, List<Object>> attributes) {
        val encodedNames = buildAndEncodeConsentAttributes(attributes);
        consent.setAttributes(encodedNames);
        consent.setCreatedDate(LocalDateTime.now(ZoneId.systemDefault()));
        return consent;
    }
This is {@link DefaultConsentDecisionBuilder}.

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