/** * Create the FMRC catalog, or one of its nested catalogs. * @param match which catalog: one of null, RUNS, OFFSET, FORECAST, or SCAN * @param orgPath the path for the requested catalog. * @param baseURI the base URI for the catalog, used to resolve relative URLs. * @return the requested catalog */ public InvCatalogImpl makeCatalog(String match, String orgPath, URI baseURI ) { logger.debug("FMRC make catalog for "+match+" "+baseURI); try { if ((match == null) || (match.length() == 0)) return makeCatalog(baseURI); else if (match.equals(RUNS)) return makeCatalogRuns(baseURI); else if (match.equals(OFFSET)) return makeCatalogOffsets(baseURI); else if (match.equals(FORECAST)) return makeCatalogForecasts(baseURI); else if (match.equals(SCAN)) return makeCatalogScan(orgPath, baseURI); else return null; } catch (Exception e) { logger.error("Error making catalog for "+path, e); return null; } }