//--- load catalog
InvCatalogFactory factory = new InvCatalogFactory("default", true);
catalog = (InvCatalogImpl) factory.readXML(params.url);
StringBuilder buff = new StringBuilder();
if (!catalog.check(buff, true)) {
throw new BadXmlResponseEx("Invalid catalog "+ params.url+"\n"+buff.toString());
}
//--- display catalog read in log file
log.info("Catalog read from "+params.url+" is \n"+factory.writeXML(catalog));
String serviceStyleSheet = context.getAppPath() + Geonet.Path.IMPORT_STYLESHEETS + "/ThreddsCatalog-to-ISO19119_ISO19139.xsl";