//Setup the request and response
httpServletRequest = this.setupPortletRequest(httpServletRequest, portletWindow, parameters);
//Setup the response to capture the output
final PortletHttpServletResponseWrapper portletHttpServletResponseWrapper = new PortletHttpServletResponseWrapper(httpServletResponse, printWriter);
//Execute the action,
if (this.logger.isDebugEnabled()) {
this.logger.debug("Rendering portlet for window '" + portletWindow + "'");
}
try {
this.portletContainer.doRender(portletWindow, httpServletRequest, portletHttpServletResponseWrapper);
portletHttpServletResponseWrapper.flushBuffer();
}
catch (PortletException pe) {
throw new PortletDispatchException("The portlet window '" + portletWindow + "' threw an exception while executing render.", portletWindow, pe);
}
catch (PortletContainerException pce) {