code: public static Connection connect(Configuration conf) {
      Class<? extends Connection> connectionClass = getConnectionClass();
      try {
        return connectionClass.getConstructor(Configuration.class).newInstance(conf);
      } catch (Exception e) {
        throw new IllegalStateException("Could not find an appropriate constructor for "
            + CONNECTION_CLASS.getCanonicalName(), e);
      }
    }
docs: <p>connect.</p>
  
  @param conf a {@link org.apache.hadoop.conf.Configuration} object.
  @return a {@link org.apache.hadoop.hbase.client.Connection} object.