protected static void doConfigure(ConfigurationHTTPAdapter 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("service")) {
      handleService(configuration,element);
    }
 else     if (nodeName.equals("service")) {
      handleGet(configuration,element);
    }
 else     if (nodeName.equals("get")) {
      handleGet(configuration,element);
    }
 else     if (nodeName.equals("request")) {
      handleRequest(configuration,element);
    }
  }
}

protected static void doConfigure ( ConfigurationHTTPAdapter 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 ( "service" ) ) { handleService ( configuration , element ) ; } else if ( nodeName . equals ( "service" ) ) { handleGet ( configuration , element ) ; } else if ( nodeName . equals ( "get" ) ) { handleGet ( configuration , element ) ; } else if ( nodeName . equals ( "request" ) ) { handleRequest ( configuration , element ) ; } } }
parse the w3c dom document .
