public HRegion getRegion(final RegionSpecifier regionSpecifier) throws IOException {
    return server.getRegion(regionSpecifier.getValue().toByteArray());
  }
Find the HRegion based on a region specifier
@param regionSpecifier the region specifier
@return the corresponding region
@throws IOException if the specifier is not null, but failed to find the region
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java