### Question:
XmlModeler implements ContentModeler { public void registerModels(String modelsUri) throws BagriException { XSImplementation impl = (XSImplementation) new DOMXSImplementationSourceImpl().getDOMImplementation("XS-Loader LS"); XSLoader schemaLoader = impl.createXSLoader(null); java.nio.file.Path catalog = Paths.get(modelsUri); List<String> files = new ArrayList<>(); processCatalog(catalog, files); if (files.size() > 0) { StringList schemas = impl.createStringList(files.toArray(new String[files.size()])); XSModel schema = schemaLoader.loadURIList(schemas); processModel(schema); } } XmlModeler(ModelManagement modelMgr); void init(Properties properties); @Override void registerModel(String model); void registerModels(String modelsUri); @Override void registerModelUri(String modelUri);  }### Answer:
@Test public void registerSchemas() throws Exception { ((XmlModeler) modelPro).registerModels("../etc/samples/tpox/"); Collection<Path> paths = model.getTypePaths("/{http: assertNotNull(paths); assertTrue(paths.size() > 0); assertEquals(162, paths.size()); paths = model.getTypePaths("/{http: assertNotNull(paths); assertTrue(paths.size() > 0); assertEquals(165, paths.size()); }