SessionInfo sessionInfo = (SessionInfo)request.getSession().getAttribute(Constants.SESSION_INFO);
int realmID = sessionInfo.getRealm().getRealmID();
int navigationContext = sessionInfo.getNavigationContext();
String defaultView = navigationContext ==
SessionInfo.MANAGEMENT_CONSOLE_CONTEXT
? Property.getProperty(new SystemConfigKey("ui.defaultManagementConsoleViewType"))
: Property.getProperty(new ProfilePropertyKey("ui.defaultUserConsoleViewType", sessionInfo));
if(navigationContext == SessionInfo.USER_CONSOLE_CONTEXT) {
selectedView = CoreUtil.getCookieValue("ui_view_" + getModel().getId() + "_" + navigationContext, request, defaultView);
if (selectedView == null){