resourceBuilder = InternetResourceBuilder.getInstance();
if (!(resourceBuilder instanceof PortletResourceBuilder)) {
resourceBuilder = new PortletResourceBuilder(resourceBuilder);
InternetResourceBuilder.setInstance(resourceBuilder);
}
WebXml webXml = (WebXml) portletContext
.getAttribute(WebXml.CONTEXT_ATTRIBUTE);
portletContext.setAttribute(WebXml.CONTEXT_ATTRIBUTE,
new PortletWebXml(webXml));
Map<String, String> filterInitParams = config