private static CatalogRef fromCatalog(String catalogName, String catalogRefName) {
		CatalogRef cr = get(catalogName);
		Catalog catalog = Catalog.getByRef(cr.catalogRef);
		CatalogRef catalogRef = catalog.catalogs.get(catalogRefName);
		if (catalogRef == null) {
			throw new ExitException(EXIT_INVALID_INPUT, "No catalog ref found with name '" + catalogRefName + "'");
		}
		return catalogRef;
	}
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