@SuppressWarnings("unchecked")
    @Override
    public Map<String, List<Object>> getAttributesInternal(final RegisteredServiceAttributeReleasePolicyContext context,
                                                           final Map<String, List<Object>> resolvedAttributes) {
        return allowedAttributes
            .entrySet()
            .stream()
            .map(entry -> {
                val values = entry.getValue()
                    .stream()
                    .map(value -> SpringExpressionLanguageValueResolver.getInstance().resolve(value.toString()))
                    .collect(Collectors.toList());
                return Pair.of(entry.getKey(), values);
            })
            .collect(Collectors.toMap(Pair::getKey, entry -> CollectionUtils.toCollection(entry.getValue(), ArrayList.class)));
    }
Return static attributes for the service.

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