public static synchronized ChatManager getInstanceFor ( XMPPConnection connection ) { ChatManager manager = INSTANCES . get ( connection ) ; if ( manager == null ) manager = new ChatManager ( connection ) ; return manager ; }
Returns the ChatManager instance associated with a given XMPPConnection .