elResp.addContent(new Element(Geonet.Elem.ID).setText(id));
elResp.addContent(new Element("schema").setText(dataMan.getMetadataSchema(id)));
elResp.addContent(errorReport);
Element schematronTranslations = new Element("schematronTranslations");
final SchematronRepository schematronRepository = context.getBean(SchematronRepository.class);
// --- add translations for schematrons
final List<Schematron> schematrons = schematronRepository.findAllBySchemaName(schemaName);
MetadataSchema metadataSchema = dataMan.getSchema(schemaName);
String schemaDir = metadataSchema.getSchemaDir();
SAXBuilder builder = new SAXBuilder();