@Override
    public Map<String, List<Object>> getAttributesInternal(final RegisteredServiceAttributeReleasePolicyContext context,
                                                           final Map<String, List<Object>> resolvedAttributes) {
        val attributes = new LinkedHashMap<String, List<Object>>();
        attributes.putAll(fetchAttributes(environmentVariables,
            entry -> List.of(System.getenv(entry.getKey()))));
        attributes.putAll(fetchAttributes(systemProperties,
            entry -> List.of(System.getProperty(entry.getKey()))));
        val profiles = (List) CollectionUtils.wrapList(context.getApplicationContext().getEnvironment().getActiveProfiles());
        attributes.put("applicationProfiles", profiles);
        return attributes;
    }
Return environment info and app profiles for the service.

@author Misagh Moayyed
@since 7.3.0
core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/services/ReturnEnvironmentAttributeReleasePolicy.java