}
this.portletContainer.doLoad(portletWindow, httpServletRequest, portletHttpServletResponseWrapper);
}
catch (PortletException pe) {
throw new PortletLoadFailureException("The portlet window '" + portletWindow + "' threw an exception while being loaded.", portletWindow, pe);
}
catch (PortletContainerException pce) {
throw new PortletLoadFailureException("The portlet container threw an exception while loading portlet window '" + portletWindow + "'.", portletWindow, pce);
}
catch (IOException ioe) {
throw new PortletLoadFailureException("The portlet window '" + portletWindow + "' threw an exception while being loaded.", portletWindow, ioe);
}
final StringBuffer initResults = initResultsOutput.getBuffer();
if (initResults.length() > 0) {
throw new PortletLoadFailureException("Content was written to response during loading of portlet window '" + portletWindow + "' . Response Content: " + initResults, portletWindow);
}
return portletWindow.getPortletWindowId();
}