protected static void doConfigure(ConfigurationDBAdapter configuration,Document doc) throws RuntimeException {
  Element root=doc.getDocumentElement();
  DOMElementIterator eventTypeNodeIterator=new DOMElementIterator(root.getChildNodes());
  while (eventTypeNodeIterator.hasNext()) {
    Element element=eventTypeNodeIterator.next();
    String nodeName=element.getNodeName();
    if (nodeName.equals("jdbc-connection")) {
      handleConnection(configuration,element);
    }
 else     if (nodeName.equals("dml")) {
      handleDml(configuration,element);
    }
 else     if (nodeName.equals("upsert")) {
      handleUpsert(configuration,element);
    }
 else     if (nodeName.equals("executors")) {
      handleExecutors(configuration,element);
    }
  }
}

protected static void doConfigure ( ConfigurationDBAdapter configuration , Document doc ) throws RuntimeException { Element root = doc . getDocumentElement ( ) ; DOMElementIterator eventTypeNodeIterator = new DOMElementIterator ( root . getChildNodes ( ) ) ; while ( eventTypeNodeIterator . hasNext ( ) ) { Element element = eventTypeNodeIterator . next ( ) ; String nodeName = element . getNodeName ( ) ; if ( nodeName . equals ( "jdbc-connection" ) ) { handleConnection ( configuration , element ) ; } else if ( nodeName . equals ( "dml" ) ) { handleDml ( configuration , element ) ; } else if ( nodeName . equals ( "upsert" ) ) { handleUpsert ( configuration , element ) ; } else if ( nodeName . equals ( "executors" ) ) { handleExecutors ( configuration , element ) ; } } }
parse the w3c dom document .
