SimplePortletWindowSession windowSession,
User user)
throws WSRPException {
WSRPRequestImpl wsrpRequest = new WSRPRequestImpl(windowSession, null, this.consumerEnvironment);
PortletDriver portletDriver = consumerEnvironment.getPortletDriverRegistry().getPortletDriver(portlet);
MarkupResponse response = portletDriver.getMarkup(wsrpRequest, user.getUserID());
if (response != null) {
SessionContext sessionContext = response.getSessionContext();
if (sessionContext != null && windowSession != null) {
windowSession.getPortletSession().setSessionContext(sessionContext);