// writer.println("</div>");
windowState.saveSeamConversationId(facesContext);
// PortletSession portletSession = request.getPortletSession(true);
PortletSession portletSession = (PortletSession) facesContext
.getExternalContext().getSession(true);
WindowIDRetriver idRetriver = (WindowIDRetriver) portletSession
.getAttribute(PortletStateHolder.WINDOW_ID_RETRIVER);
if (null != idRetriver) {
windowState.setWindowId(idRetriver.getWindowID());
}
PortletBridgePrincipal security = new PortletBridgePrincipal(request,userRoles);
// TODO - get user roles, defined in the portletbridge.xml ( ???
// parse it ??? ), and store all values for a
// "isUserInRole(roleName)" calls