code: public static Configuration loadFromString(String config)
      throws IOException, SAXException {
      ConfigurationImpl cfg = new ConfigurationImpl();
  
      XMLReader parser = XMLReaderFactory.createXMLReader();
      parser.setContentHandler(new ConfigHandler(cfg, null));
      Reader reader = new StringReader(config);
      parser.parse(new InputSource(reader));
      return cfg;
    }
docs: Loads the configuration XML from the given string.
  @since 1.3