reader.setAttributeNameConverter(AttributeNameConverter.fromPathMap(margs.renamed)); reader.setElementNameConverter(ElementNameConverter.fromPathMap(margs.renamed)); DataUtil.setNameOfMatchingAttributes(document, AttributePredicate.ANY_ATTRIBUTE, AttributeNameConverter.fromPathMap(margs.renamed), DataUtil.RECURSE); DataUtil.setNameOfMatchingElements(document,