ExoPortletState exo = (ExoPortletState)portletContext.getState();
instanceContext = new ExoPortletInstanceContext(exo.getPortletId());
}
renderInvocation.setInstanceContext(instanceContext);
renderInvocation.setUserContext(new AbstractUserContext(prcontext.getRequest()));
renderInvocation.setWindowContext(new AbstractWindowContext(uiPortlet_.getWindowId()));
renderInvocation.setPortalContext(new AbstractPortalContext(Collections.singletonMap(
"javax.portlet.markup.head.element.support", "true")));
renderInvocation.setSecurityContext(new AbstractSecurityContext(prcontext.getRequest()));
renderInvocation.setTarget(portletContext);