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