public static Table getMetaHTable(final Connection connection) throws IOException {
    // We used to pass whole CatalogTracker in here, now we just pass in Connection
    Objects.requireNonNull(connection, "Connection cannot be null");
    if (connection.isClosed()) {
      throw new IOException("connection is closed");
    }
    return connection.getTable(TableName.META_TABLE_NAME);
  }
Callers should call close on the returned {@link Table} instance.
@param connection connection we're using to access Meta
@return An {@link Table} for <code>hbase:meta</code>
@throws NullPointerException if {@code connection} is {@code null}
hbase-server/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java