this.chatHandler = Sets.newHashSet();
this.connection = new XMPPConnection(new ConnectionConfiguration(host,
port));
this.connection.getChatManager().addChatListener(
new ChatManagerListener() {
@Override
public void chatCreated(
final org.jivesoftware.smack.Chat chat,
final boolean createdLocally) {