protected static void doConfigure(Configuration configuration,Document doc) throws EPException {
  Element root=doc.getDocumentElement();
  DOMElementIterator eventTypeNodeIterator=new DOMElementIterator(root.getChildNodes());
  while (eventTypeNodeIterator.hasNext()) {
    Element element=eventTypeNodeIterator.next();
    String nodeName=element.getNodeName();
    if (nodeName.equals("event-type-auto-name")) {
      handleEventTypeAutoNames(configuration,element);
    }
 else     if (nodeName.equals("event-type")) {
      handleEventTypes(configuration,element);
    }
 else     if (nodeName.equals("auto-import")) {
      handleAutoImports(configuration,element);
    }
 else     if (nodeName.equals("auto-import-annotations")) {
      handleAutoImportAnnotations(configuration,element);
    }
 else     if (nodeName.equals("method-reference")) {
      handleMethodReference(configuration,element);
    }
 else     if (nodeName.equals("database-reference")) {
      handleDatabaseRefs(configuration,element);
    }
 else     if (nodeName.equals("plugin-view")) {
      handlePlugInView(configuration,element);
    }
 else     if (nodeName.equals("plugin-virtualdw")) {
      handlePlugInVirtualDW(configuration,element);
    }
 else     if (nodeName.equals("plugin-aggregation-function")) {
      handlePlugInAggregation(configuration,element);
    }
 else     if (nodeName.equals("plugin-aggregation-multifunction")) {
      handlePlugInMultiFunctionAggregation(configuration,element);
    }
 else     if (nodeName.equals("plugin-singlerow-function")) {
      handlePlugInSingleRow(configuration,element);
    }
 else     if (nodeName.equals("plugin-pattern-guard")) {
      handlePlugInPatternGuard(configuration,element);
    }
 else     if (nodeName.equals("plugin-pattern-observer")) {
      handlePlugInPatternObserver(configuration,element);
    }
 else     if (nodeName.equals("variable")) {
      handleVariable(configuration,element);
    }
 else     if (nodeName.equals("plugin-loader")) {
      handlePluginLoaders(configuration,element);
    }
 else     if (nodeName.equals("engine-settings")) {
      handleEngineSettings(configuration,element);
    }
 else     if (nodeName.equals("plugin-event-representation")) {
      handlePlugInEventRepresentation(configuration,element);
    }
 else     if (nodeName.equals("plugin-event-type")) {
      handlePlugInEventType(configuration,element);
    }
 else     if (nodeName.equals("plugin-event-type-name-resolution")) {
      handlePlugIneventTypeNameResolution(configuration,element);
    }
 else     if (nodeName.equals("revision-event-type")) {
      handleRevisionEventType(configuration,element);
    }
 else     if (nodeName.equals("variant-stream")) {
      handleVariantStream(configuration,element);
    }
  }
}

protected static void doConfigure ( Configuration configuration , Document doc ) throws EPException { Element root = doc . getDocumentElement ( ) ; DOMElementIterator eventTypeNodeIterator = new DOMElementIterator ( root . getChildNodes ( ) ) ; while ( eventTypeNodeIterator . hasNext ( ) ) { Element element = eventTypeNodeIterator . next ( ) ; String nodeName = element . getNodeName ( ) ; if ( nodeName . equals ( "event-type-auto-name" ) ) { handleEventTypeAutoNames ( configuration , element ) ; } else if ( nodeName . equals ( "event-type" ) ) { handleEventTypes ( configuration , element ) ; } else if ( nodeName . equals ( "auto-import" ) ) { handleAutoImports ( configuration , element ) ; } else if ( nodeName . equals ( "auto-import-annotations" ) ) { handleAutoImportAnnotations ( configuration , element ) ; } else if ( nodeName . equals ( "method-reference" ) ) { handleMethodReference ( configuration , element ) ; } else if ( nodeName . equals ( "database-reference" ) ) { handleDatabaseRefs ( configuration , element ) ; } else if ( nodeName . equals ( "plugin-view" ) ) { handlePlugInView ( configuration , element ) ; } else if ( nodeName . equals ( "plugin-virtualdw" ) ) { handlePlugInVirtualDW ( configuration , element ) ; } else if ( nodeName . equals ( "plugin-aggregation-function" ) ) { handlePlugInAggregation ( configuration , element ) ; } else if ( nodeName . equals ( "plugin-aggregation-multifunction" ) ) { handlePlugInMultiFunctionAggregation ( configuration , element ) ; } else if ( nodeName . equals ( "plugin-singlerow-function" ) ) { handlePlugInSingleRow ( configuration , element ) ; } else if ( nodeName . equals ( "plugin-pattern-guard" ) ) { handlePlugInPatternGuard ( configuration , element ) ; } else if ( nodeName . equals ( "plugin-pattern-observer" ) ) { handlePlugInPatternObserver ( configuration , element ) ; } else if ( nodeName . equals ( "variable" ) ) { handleVariable ( configuration , element ) ; } else if ( nodeName . equals ( "plugin-loader" ) ) { handlePluginLoaders ( configuration , element ) ; } else if ( nodeName . equals ( "engine-settings" ) ) { handleEngineSettings ( configuration , element ) ; } else if ( nodeName . equals ( "plugin-event-representation" ) ) { handlePlugInEventRepresentation ( configuration , element ) ; } else if ( nodeName . equals ( "plugin-event-type" ) ) { handlePlugInEventType ( configuration , element ) ; } else if ( nodeName . equals ( "plugin-event-type-name-resolution" ) ) { handlePlugIneventTypeNameResolution ( configuration , element ) ; } else if ( nodeName . equals ( "revision-event-type" ) ) { handleRevisionEventType ( configuration , element ) ; } else if ( nodeName . equals ( "variant-stream" ) ) { handleVariantStream ( configuration , element ) ; } } }
parse the w3c dom document .
