void importCatalog(File catalogFile) throws FileNotFoundException, IOException, Exception { CatalogFactory factory = catalog.getFactory(); LegacyCatalogReader reader = new LegacyCatalogReader(); reader.read(Files.asResource(catalogFile)); // build all the catalog objects that can be read from the catalog.xml file importNamespaces(factory, reader.namespaces(), false); importNamespaces(factory, reader.isolatedNamespaces(), true); importStyles(factory, reader.styles()); importDataStores(factory, reader.dataStores()); importFormats(factory, reader.formats()); }