public static Put makePutFromRegionInfo(RegionInfo regionInfo, long ts) throws IOException {
    byte[] metaKeyForRegion = CatalogFamilyFormat.getMetaKeyForRegion(regionInfo);
    try {
      Put put = new Put(metaKeyForRegion, ts);
      return addRegionInfo(put, regionInfo);
    } catch (IllegalArgumentException ex) {
      LOG.error(
        "Got exception while creating put for regioninfo {}." + "meta key for regioninfo is {}",
        regionInfo.getRegionNameAsString(), metaKeyForRegion);
      throw ex;
    }
  }
Generates and returns a {@link Put} containing the {@link RegionInfo} for the catalog table.
@throws IllegalArgumentException when the provided RegionInfo is not the default replica.
hbase-server/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java