public RegionLocator getRegionLocator(byte[] tableName) throws IOException {
    return getCurrentConnection().connection.getRegionLocator(TableName.valueOf(tableName));
  }
Retrieve a regionLocator for the table. The user should close the RegionLocator.
hbase-server/src/main/java/org/apache/hadoop/hbase/util/ConnectionCache.java