final SchematronRepository repo = _applicationContext.getBean(SchematronRepository.class);
Schematron schematron = new Schematron();
schematron.setSchemaName(schemaName);
schematron.setFile(schemaManager.getSchemaDir(schemaName) + File.separator + "schematron" + File.separator
+ "schematron-rules-geonetwork.sch");
repo.save(schematron);
}
}