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;
    }
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.

@param connection
@return the instance of BlockingCommandManager