/** * Imports namespaces and create symmetric workspaces for them * * @param factory * @param namespaces */ void importNamespaces(CatalogFactory factory, Map namespaces) { importNamespaces(factory, namespaces, false); }
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()); }