private Map<String, String> parseAttributes(ConfigurationXml configuration) {
    Map<String, String> attributes = new HashMap<>();
    for (Map.Entry<QName, String> attribute : configuration.getAttributes().entrySet()) {
      attributes.put(attribute.getKey().getLocalPart(), attribute.getValue());
    }
    return attributes;
  }
Parse a configurations type attributes.

@param configuration  object representation of a configuration file

@return  collection of attributes for the configuration type
ambari-server/src/main/java/org/apache/ambari/server/stack/ConfigurationDirectory.java