private void mergeWebXml( File srcFile,
WebAppDocument.WebApp targetWebApp )
throws Exception
{
System.out.println( "Merging " + srcFile + " into target web-app document ..." );
WebAppDocument webAppDoc = parseWebXmlFile( srcFile );
WebAppDocument.WebApp webApp = webAppDoc.getWebApp( );
mergeServletElements( webApp, targetWebApp );
mergeServletMappingElements( webApp, targetWebApp );
}