protected boolean doesMultifactorAuthenticationProviderExistInContext(final RequestContext requestContext,
                                                                          final MultifactorAuthenticationProvider provider) {
        val authResultBuilder = WebUtils.getAuthenticationResultBuilder(requestContext);
        val registeredService = WebUtils.getRegisteredService(requestContext);
        return authResultBuilder != null && authResultBuilder.getAuthentications().stream().anyMatch(authentication -> {
            val result = multifactorAuthenticationContextValidator.validate(authentication, provider.getId(), Optional.ofNullable(registeredService));
            return result.isSuccess() && result.getProvider().isPresent();
        });
    }
This is {@link InitPasswordResetAction}, serves a as placeholder for extensions.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-pm-webflow/src/main/java/org/apereo/cas/pm/web/flow/actions/InitPasswordResetAction.java