title: Smack ChatManager not behaving properly
body: <p>I've searched around quite a bit to try and find some additional information on Smack and their ChatManager, but there isn't much, so it's time to come to SOF.</p>
  
  <p>I'm doing something very basic at a certain point in my code:</p>
  
  <pre><code> chatmanager = con.getChatManager();
   chatmanager.createChat(name, message.getThread(),
   new MessageListener() {
    public void processMessage(Chat chat, Message message) {
    }
   });
   System.out.println("Chat created");
   Chat chat = chatmanager.getThreadChat(message.getThread());
   if (chat == null)
     System.out.print("Newly created chat is null");
   else
     System.out.println("Newly created chat is saved in manager");
  </code></pre>
  
  <p>I'm trying to verify that the chat I <em>just</em> created, is actually in the chatManager</p>
  
  <p>In my program I have only 1 instance of chatManager ever created, but multiple times I do this:</p>
  
  <pre><code> chatmanager = con.getChatManager();
  </code></pre>
  
  <p>I have a feeling that each time I do that, the chatManager is being re-initialized.  Am I completely mistaken?</p>
  
  <p>Anyway, the problem is that I don't get any output. Neither, "chat is null" or "chat is saved". Leads me to believe that the chatManager is causing problems.</p>
  
  <p>Can anyone help?</p>