session.setUserRefRI(user);
// This will create a new GWT Event Service Domain that's named by the session identifier
// The session will be used to forward events and asynchronous responses back to the client
// via this mechanism.
session.initializeEventChannel(servlet);
sessions.put(session.getSessionIDRI(), session);
response.setSessionID(session.getSessionIDRI());