@Override
    protected Map<String, List<Object>> authorizeReleaseOfAllowedAttributes(
        final RegisteredServiceAttributeReleasePolicyContext context,
        final Map<String, List<Object>> attrs) {
        val resolvedAttributes = new TreeMap<String, List<Object>>(String.CASE_INSENSITIVE_ORDER);
        resolvedAttributes.putAll(attrs);
        val attributesToRelease = new HashMap<String, List<Object>>();
        getEntityCategoryAttributes().forEach((key, value) -> {
            if (resolvedAttributes.containsKey(key)) {
                val attributeName = this.useUniformResourceName ? value : key;
                attributesToRelease.put(attributeName, resolvedAttributes.get(key));
            }
        });
        return attributesToRelease;
    }
This is {@link BaseEntityCategoryAttributeReleasePolicy}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/services/BaseEntityCategoryAttributeReleasePolicy.java