Xml.resetResolver();
}
SchematronRepository schemaRepo = applicationContext.getBean(SchematronRepository.class);
SchematronCriteriaGroupRepository criteriaGroupRepository = applicationContext.getBean(SchematronCriteriaGroupRepository.class);
MetadataSchema mds = new SchemaLoader().load(xmlSchemaFile, xmlSubstitutionsFile, schemaRepo, criteriaGroupRepository);
mds.setName(name);
mds.setSchemaDir(path);
mds.loadSchematronRules(basePath);