DataService dataService = sessionService.getDataService();
ManagedReference<ClientSessionImpl> sessionRef =
dataService.createReference(this);
id = sessionRef.getId();
this.wrappedSessionRef =
dataService.createReference(new ClientSessionWrapper(sessionRef));
idBytes = id.toByteArray();
dataService.setServiceBinding(getSessionKey(), this);
dataService.setServiceBinding(getSessionNodeKey(), this);
dataService.setServiceBinding(getEventQueueKey(), new EventQueue(this));
logger.log(Level.FINEST, "Stored session, identity:{0} id:{1}",