static Catalog findNearestCatalogWithCatalogRef(Path dir, String catalogName) {
		return Catalog.findNearestCatalogWith(dir, true, true,
				catalog -> catalog.catalogs.containsKey(catalogName) ? catalog : null);
	}
Returns the given CatalogRef from the given registered Catalog

@param catalogName    The name of a registered Catalog
@param catalogRefName The name of a CatalogRef
@return A Template object
src/main/java/dev/jbang/catalog/CatalogRef.java