code:     public static HierarchicalConfiguration loadXml(InputStream xmlStream) {
          XMLConfiguration cfg = new XMLConfiguration();
          try {
              cfg.load(xmlStream);
              return cfg;
          } catch (ConfigurationException e) {
              throw new IllegalArgumentException("Cannot load xml from Stream", e);
          }
      }
  
  