private static Optional<TableState> getTableState(Result r) throws IOException {
    return Optional.ofNullable(CatalogFamilyFormat.getTableState(r));
  }
Returns the HRegionLocation from meta for the given encoded region name
hbase-client/src/main/java/org/apache/hadoop/hbase/ClientMetaTableAccessor.java