public static Hbase.Iface newInstance(Hbase.Iface handler, ThriftMetrics metrics,
    Configuration conf) {
    return (Hbase.Iface) Proxy.newProxyInstance(handler.getClass().getClassLoader(),
      new Class[] { Hbase.Iface.class }, new HbaseHandlerMetricsProxy(handler, metrics, conf));
  }
Converts a Hbase.Iface using InvocationHandler so that it reports process time of each call to
ThriftMetrics.
hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/HbaseHandlerMetricsProxy.java