//
String windowId = context.getWindowId();
Portlet portlet = getPortlet(windowId);
//
renderInvocation.setClientContext(new AbstractClientContext(req, requestCookies));
renderInvocation.setServerContext(new AbstractServerContext(req, resp));
renderInvocation.setInstanceContext(new AbstractInstanceContext(portlet.getContext().getId()));
renderInvocation.setUserContext(new AbstractUserContext(req));
renderInvocation.setWindowContext(new AbstractWindowContext(windowId));
renderInvocation.setPortalContext(PORTAL_CONTEXT);