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;