if (username == null) {
throw new ChatException("not logged in: no http session username");
}
// create the chat message
StatusUpdate statusUpdate = new StatusUpdate();
statusUpdate.setUsername(username);
statusUpdate.setStatus(status);
for (Map.Entry<String, CometSession> entry : users.entrySet()) {
entry.getValue().enqueue(statusUpdate);
}
}