private static Element loadDocument(URL location) throws WebAppConfigurationException {
  try {
    Document document=UtilXml.readXmlDocument(location,true);
    Element rootElement=document.getDocumentElement();
    if (Debug.verboseOn())     Debug.logVerbose("Loaded XML Config - " + location,module);
    return rootElement;
  }
 catch (  Exception e) {
    Debug.logError(e,module);
    throw new WebAppConfigurationException(e);
  }
}

private static Element loadDocument ( URL location ) throws WebAppConfigurationException { try { Document document = UtilXml . readXmlDocument ( location , true ) ; Element rootElement = document . getDocumentElement ( ) ; if ( Debug . verboseOn ( ) ) Debug . logVerbose ( "Loaded XML Config - " + location , module ) ; return rootElement ; } catch ( Exception e ) { Debug . logError ( e , module ) ; throw new WebAppConfigurationException ( e ) ; } }
loads the xml file and returns the root element
