}
instanceContext = new ExoPortletInstanceContext(wsrp.getPortletId(), accessMode);
}
else
{
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()));