this.publishQosLogoutEvent.clearRoutes();
MsgQosData msgQosData = (MsgQosData)this.publishQosLogoutEvent.getData().clone();
// __sessionId is deprecated, please use __publicSessionId
msgQosData.addClientProperty("__sessionId", sessionInfo.getPublicSessionId());
msgQosData.addClientProperty("__publicSessionId", sessionInfo.getPublicSessionId());
msgQosData.addClientProperty("__absoluteName", sessionInfo.getSessionName().getAbsoluteName());
MsgUnit msgUnit = new MsgUnit(this.xmlKeyLogoutEvent, sessionInfo.getLoginName().getBytes(), msgQosData);
publish(this.unsecureSessionInfo, msgUnit); // publish that this client logged out
this.publishQosLogoutEvent.getData().setTopicProperty(null); // only the first publish needs to configure the topic