protected Map<String, List<Object>> getReleasedByDefaultAttributes(final RegisteredServiceAttributeReleasePolicyContext context,
                                                                       final Map<String, List<Object>> attributes) {
        val properties = context.getApplicationContext().getBean(CasConfigurationProperties.class);
        val defaultAttrs = properties.getAuthn().getAttributeRepository().getCore().getDefaultAttributesToRelease();
        LOGGER.debug("Default attributes for release are: [{}]", defaultAttrs);
        val defaultAttributesToRelease = new TreeMap<String, List<Object>>(String.CASE_INSENSITIVE_ORDER);
        defaultAttrs.forEach(key -> {
            if (attributes.containsKey(key)) {
                LOGGER.debug("Found and added default attribute for release: [{}]", key);
                defaultAttributesToRelease.put(key, attributes.get(key));
            }
        });
        return defaultAttributesToRelease;
    }
Determines a default bundle of attributes that may be released to all services
without the explicit mapping for each service.

@param context    the context
@param attributes the attributes
@return the released by default attributes
core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/services/AbstractRegisteredServiceAttributeReleasePolicy.java