public Catalog create(IMetaStoreClient client) throws TException {
    Catalog cat = build();
    client.createCatalog(cat);
    return cat;
  }
Build the catalog object and create it in the metastore.
@param client metastore client
@return new catalog object
@throws TException thrown from the client
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/client/builder/CatalogBuilder.java