public static synchronized BoBManager getInstanceFor ( XMPPConnection connection ) { BoBManager bobManager = INSTANCES . get ( connection ) ; if ( bobManager == null ) { bobManager = new BoBManager ( connection ) ; INSTANCES . put ( connection , bobManager ) ; } return bobManager ; }
Get the singleton instance of BoBManager .