package org.apache.hadoop.hbase.client;

/**
 * Abstract class necessary to access protected parameters
 */
public abstract class AbstractHbaseClient {
  protected final String clusterId;

  /**
   * Constructor
   *
   * @param connection to use for connection
   */
  public AbstractHbaseClient(HConnection connection) {
    this.clusterId = ((HConnectionManager.HConnectionImplementation) connection).clusterId;
  }
}
@@ -180,16 +180,56 @@
 usterId;
+%0A  private final HConnection connection;
 %0A%0A  /**%0A
@@ -356,16 +356,50 @@
 tion) %7B%0A
+    this.connection = connection;%0A
     this
@@ -485,10 +485,166 @@
 rId;%0A  %7D
+%0A%0A  /**%0A   * Get HConnection to talk to master/cluster%0A   *%0A   * @return HConnection%0A   */%0A  public HConnection getConnection() %7B%0A    return connection;%0A  %7D
 %0A%7D

Add method to get Connection from HbaseClient