private void mapSyncopeUserAttributes(final JsonNode user, final String attributeName,
                                          final Map<String, String> attributeMappings,
                                          final Map<String, List<Object>> attributes) {
        if (user.has(attributeName)) {
            val prefix = attributeMappings.getOrDefault(attributeName, "syncopeUserAttr_");
            user.get(attributeName).forEach(attr -> {
                val attrName = prefix + attr.get("schema").asText();
                attributes.put(
                    attributeMappings.getOrDefault(attrName, attrName),
                    MAPPER.convertValue(attr.get("values"), ArrayList.class));
            });
        }
    }
Convert user as a JSON node into a map of details.

@param user              the user
@param attributeMappings the attribute mappings
@return the map
support/cas-server-support-syncope-authentication/src/main/java/org/apereo/cas/syncope/SyncopeUtils.java