* so create a thread which will wait untill presence manager finish loadind.
*/
new Thread(new Runnable() {
public void run() {
PresenceManager manager = PresenceManagerFactory.getPresenceManager(session.getPrimarySession());
Cell cell = ClientContextJME.getViewManager().getPrimaryViewCell();
PresenceInfo localPresenceInfo = manager.getPresenceInfo(cell.getCellID());
while(localPresenceInfo==null) {
manager = PresenceManagerFactory.getPresenceManager(session.getPrimarySession());
cell = ClientContextJME.getViewManager().getPrimaryViewCell();
localPresenceInfo = manager.getPresenceInfo(cell.getCellID());
}
LOGGER.warning("Presence manager is loaded.");
WonderlandUserList.INSTANCE.initialize();
UserListPresenterManager.INSTANCE.intialize();
UserListPresenterManager.INSTANCE.showActivePresenter();