@Override
    protected Event doExecuteInternal(final RequestContext requestContext) {
        activationStrategy.shouldActivate(requestContext, recaptchaProperties)
            .ifPresent(properties -> {
                WebUtils.putRecaptchaPropertiesFlowScope(requestContext, properties);
                onActivationConsumer.accept(requestContext);
            });
        return eventFactory.success(this);
    }
This is {@link InitializeCaptchaAction}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-captcha-core/src/main/java/org/apereo/cas/web/flow/InitializeCaptchaAction.java