@SuppressWarnings("unchecked")
  private void init() {
    allConfigs = new HashMap<String, Map<String, String>>();

    XStream xstream = new XStream(new StaxDriver());
    xstream.alias("configuration", Map.class);
    xstream.registerConverter(new ScomConfigConverter());

    for (String configurationResource : clusterConfigurationResources) {
      String configFileName = configurationResource + "." + DESTINATION;
      InputStream is = ClassLoader.getSystemResourceAsStream(configFileName);
      if (is == null) continue;
      Map<String, String> properties = (HashMap<String, String>) xstream.fromXML(is);
      allConfigs.put(configurationResource, properties);
    }
  }
Configuration provider for a MSI defined cluster.
contrib/ambari-scom/ambari-scom-server/src/main/java/org/apache/ambari/msi/ConfigurationProvider.java