public SessionContext(String id, String uriBase, String contextPath, String remoteHost, String remoteAddress, String remoteUser, String remoteViewer, UserPlatform platform) { this.id = id; this.locale = Locale.getDefault(); this.uriBase = uriBase; this.contextPath = contextPath; this.remoteHost = remoteHost; this.remoteAddress = remoteAddress; this.remoteUser = remoteUser; this.platform = platform; this.lastAccessTime = new Date(); this.remoteViewer = remoteViewer; this.getAttributes().put(TRUE_ATTRIBUTE, Boolean.TRUE); this.getAttributes().put(FALSE_ATTRIBUTE, Boolean.FALSE); }