static Map<String, Object> decodeAttributes(final Map<String, Object> attributes,
                                                final RegisteredService registeredService,
                                                final WebApplicationService webApplicationService) {
        val finalAttributes = new HashMap<String, Object>(attributes.size());
        attributes.forEach((key, v) -> {
            val attributeName = ProtocolAttributeEncoder.decodeAttribute(key);
            LOGGER.debug("Decoded SAML attribute [{}] to [{}] with value(s) [{}]", key, attributeName, v);
            finalAttributes.put(attributeName, v);
        });
        return finalAttributes;
    }
Decode attributes map.

@param attributes            the attributes
@param registeredService     the registered service
@param webApplicationService the web application service
@return the map
api/cas-server-core-api-services/src/main/java/org/apereo/cas/authentication/ProtocolAttributeEncoder.java