if (webXmlIn != null)
{
webXmlIn.close();
}
JetspeedWebApplicationRewriterFactory rewriterFactory = new JetspeedWebApplicationRewriterFactory();
JetspeedWebApplicationRewriter rewriter = rewriterFactory.getInstance(doc);
rewriter.processWebXML();
if (rewriter.isChanged())
{
System.out.println("Writing out infused web.xml for " + paName);