private Collection<Pair<Pattern, String>> createPatternsAndReturnValue(final String attributeName) {
        val patternDef = getPatterns().get(attributeName);
        val patternAndReturnVal = new ArrayList<>(CollectionUtils.toCollection(patternDef));
        return patternAndReturnVal
            .stream()
            .map(this::mapPattern)
            .collect(Collectors.toList());
    }
This is {@link RegisteredServiceMutantRegexAttributeFilter}.

@author Misagh Moayyed
@since 5.3.0
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/support/RegisteredServiceMutantRegexAttributeFilter.java