code: 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;
      }
docs: Get the singleton instance of BoBManager.
  
  @param connection
  @return the instance of BoBManager