@Override
    protected Event doExecuteInternal(final RequestContext requestContext) {
        return FunctionUtils.doUnchecked(() -> {
            val request = WebUtils.getHttpServletRequestFromExternalWebflowContext(requestContext);
            val webService = WebUtils.getService(requestContext);
            val service = this.authenticationRequestServiceSelectionStrategies.resolveService(webService);
            val registeredService = getRegisteredServiceForConsent(requestContext, service);
            val authentication = WebUtils.getAuthentication(requestContext);
            val optionValue = Integer.parseInt(request.getParameter("option"));
            val option = ConsentReminderOptions.valueOf(optionValue);

            val reminder = Long.parseLong(request.getParameter("reminder"));
            val reminderTimeUnit = request.getParameter("reminderTimeUnit");
            val unit = ChronoUnit.valueOf(reminderTimeUnit.toUpperCase(Locale.ENGLISH));

            LOGGER.debug("Storing consent decision for service [{}]", service);
            consentEngine.storeConsentDecision(service, registeredService, authentication, reminder, unit, option);
            return eventFactory.success(this);
        });
    }
This is {@link ConfirmConsentAction}.

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