(HttpServletRequest) pageContext.getRequest(), window);
PortalServletResponse portalResponse = new PortalServletResponse(
(HttpServletResponse) pageContext.getResponse());
// Retrieve the portlet container from servlet context.
PortletContainer container = (PortletContainer)
servletContext.getAttribute(AttributeKeys.PORTLET_CONTAINER);
// Render the portlet and cache the response.
try {
container.doRender(window, portalRequest, portalResponse);
response = portalResponse;
status = SUCCESS;
} catch (Throwable th) {
status = FAILED;
throwable = th;