public static org.apache.hadoop.hbase.client.RegionInfo getRegionInfo(
    final RpcController controller, final AdminService.BlockingInterface admin,
    final byte[] regionName) throws IOException {
    try {
      GetRegionInfoResponse response =
        admin.getRegionInfo(controller, getGetRegionInfoRequest(regionName));
      return toRegionInfo(response.getRegionInfo());
    } catch (ServiceException se) {
      throw getRemoteException(se);
    }
  }
A helper to retrieve region info given a region name or an encoded region name using admin
protocol.
@return the retrieved region info
hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/ProtobufUtil.java