code: public static ExternalCatalog findAndCreateExternalCatalog(Descriptor descriptor) {
  		Map<String, String> properties = descriptor.toProperties();
  		return TableFactoryService
  			.find(ExternalCatalogFactory.class, properties)
  			.createExternalCatalog(properties);
  	}
docs: Returns an external catalog.