code: public void register(K key, T connection) {
          connections.put(key, new Sync<>(key, connection));
      }
docs: Register a connection identified by {@code key}. Overwrites existing entries.
  
  @param key the connection {@code key}.
  @param connection the connection object.