src/main/java/org/jivesoftware/smack/ChatManager.java
public Chat createChat(String userJID, MessageListener listener) {
        return createChat(userJID, null, listener);
    }
public Chat createChat(String userJID, MessageListener listener) {
        return createChat(userJID, null, listener);
    }
public Chat createChat ( String userJID , MessageListener listener ) { return createChat ( userJID , null , listener ) ; }
Creates a new chat and returns it.

@param userJID
the user this chat is with.
@param listener
the listener which will listen for new messages from this
chat.
@return the created chat.
Creates a new chat and returns it .