code: public static synchronized ReconnectionManager getInstanceFor(AbstractXMPPConnection connection) {
          ReconnectionManager reconnectionManager = INSTANCES.get(connection);
          if (reconnectionManager == null) {
              reconnectionManager = new ReconnectionManager(connection);
              INSTANCES.put(connection, reconnectionManager);
          }
          return reconnectionManager;
      }
docs: Get a instance of ReconnectionManager for the given connection.
  
  @param connection
  @return a ReconnectionManager for the connection.