logger.fine("got a message... " + message);
if (message instanceof ClientConnectResponseMessage) {
ClientConnectResponseMessage msg = (ClientConnectResponseMessage) message;
CellCache cellCache = ClientContext.getCellCache(session);
if (cellCache == null) {
logger.warning("Can't find cellCache for session " + session);
return;
}
ArrayList<String> nameTagList = new ArrayList();
PresenceInfo[] presenceInfoList = msg.getPresenceInfoList();
for (int i = 0; i < presenceInfoList.length; i++) {
PresenceInfo presenceInfo = presenceInfoList[i];
logger.fine("Client connected: " + presenceInfo);
logger.fine("Got ClientConnectResponse: adding pi " + presenceInfo);
pm.presenceInfoAdded(presenceInfo);
String username = presenceInfo.getUserID().getUsername();
if (presenceInfo.getCellID() == null) {
logger.warning("CellID is null for " + presenceInfo);
continue;
}
Cell cell = cellCache.getCell(presenceInfo.getCellID());
if (cell == null) {
logger.warning("Unable to find cell for " + presenceInfo.getCellID());
continue;
}