private static Optional<MultifactorAuthenticationProvider> locateRequestedProvider(
        final Collection<MultifactorAuthenticationProvider> providersArray, final String requestedProvider) {
        return providersArray
            .stream()
            .filter(BeanSupplier::isNotProxy)
            .filter(provider -> StringUtils.equalsIgnoreCase(provider.getId(), requestedProvider))
            .findFirst();
    }
The {@link DefaultMultifactorAuthenticationContextValidator} is responsible for evaluating an authentication
object to see whether it satisfied a requested authentication context.

@author Misagh Moayyed
@since 4.3
core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/DefaultMultifactorAuthenticationContextValidator.java