{
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);
XMLOutputter output = new XMLOutputter(Format.getPrettyFormat());
webXmlWriter = getWriter(WEB_XML_PATH);
output.output(doc, webXmlWriter);
webXmlWriter.flush();
}
if(rewriter.isPortletTaglibAdded())
{
//add portlet tag lib to war
String path = Jetspeed.getRealPath("WEB-INF/tld");
if (path != null)
{