protected static Map<String, List<Object>> locateMatchingAttributeName(final Map<String, List<Object>> attributes,
                                                                           final String attrName) {
        val names = attributes.entrySet()
            .stream()
            .filter(e -> {
                LOGGER.debug("Attempting to match [{}] against [{}]", attrName, e.getKey());
                return RegexUtils.find(attrName, e.getKey());
            })
            .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
        LOGGER.debug("Found [{}] attributes relevant for multifactor authentication bypass", names.size());
        return names;
    }
This is {@link BaseMultifactorAuthenticationProviderBypassEvaluator}.

@author Misagh Moayyed
@since 6.1.0
core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/bypass/BaseMultifactorAuthenticationProviderBypassEvaluator.java