protected static ConfigurationEventTypeAxiom parse(String theString) throws EPException {
  DocumentBuilderFactory factory=DocumentBuilderFactory.newInstance();
  DocumentBuilder builder;
  Document document;
  try {
    builder=factory.newDocumentBuilder();
    document=builder.parse(new InputSource(new StringReader(theString)));
  }
 catch (  ParserConfigurationException ex) {
    throw new EPException("Could not get a DOM parser configuration",ex);
  }
catch (  SAXException ex) {
    throw new EPException("Could not parse configuration",ex);
  }
catch (  IOException ex) {
    throw new EPException("Could not read configuration",ex);
  }
  return parse(document);
}

protected static ConfigurationEventTypeAxiom parse ( String theString ) throws EPException { DocumentBuilderFactory factory = DocumentBuilderFactory . newInstance ( ) ; DocumentBuilder builder ; Document document ; try { builder = factory . newDocumentBuilder ( ) ; document = builder . parse ( new InputSource ( new StringReader ( theString ) ) ) ; } catch ( ParserConfigurationException ex ) { throw new EPException ( "Could not get a DOM parser configuration" , ex ) ; } catch ( SAXException ex ) { throw new EPException ( "Could not parse configuration" , ex ) ; } catch ( IOException ex ) { throw new EPException ( "Could not read configuration" , ex ) ; } return parse ( document ) ; }
parses the configuration xml .
