@Override
    protected Event doExecuteInternal(final RequestContext requestContext) {
        try {
            val registrationRequest = AccountRegistrationUtils.getAccountRegistrationRequest(requestContext);
            Objects.requireNonNull(registrationRequest).putProperties(requestContext.getRequestParameters().asAttributeMap().asMap());
            val response = accountRegistrationService.getAccountRegistrationProvisioner().provision(registrationRequest);
            if (response.isSuccess()) {
                return success(response);
            }
        } catch (final Throwable e) {
            LoggingUtils.error(LOGGER, e);
        }
        WebUtils.addErrorMessageToContext(requestContext, "cas.screen.acct.error.provision");
        return error();
    }
This is {@link FinalizeAccountRegistrationAction}.

@author Misagh Moayyed
@since 6.5.0
support/cas-server-support-account-mgmt/src/main/java/org/apereo/cas/acct/webflow/FinalizeAccountRegistrationAction.java