};
String rosterUnavailableChannel =
this.sessionHandler.getRosterUnavailableChannel();
server.createIfAbsent(rosterUnavailableChannel, initializer);
ServerChannel channel = server.getChannel(rosterUnavailableChannel);
if (channel == null) {
return;
}
ServerSession from = this.sessionManager.getServerSession();
Integer siteId = (Integer) client.getAttribute("siteid");
String username = (String) client.getAttribute("username");
Map<String, Object> data = new HashMap<String, Object>();
data.put("siteId", siteId);
data.put("username", username);
log.fine(data.toString());
channel.publish(from, data, null);
}