* The attributes the specified elements will have after
* modification.
*/
public StartEndElementPairModificationTransformer(String name, List<Attribute> attributes, String newName,
List<Attribute> newAttributes) {
this.navigator = new FindCorrespondingStartEndElementPairNavigator(name, attributes);
XMLEventFactory factory = XMLEventFactory.newInstance();
this.newStartElement = factory.createStartElement(new QName(newName), newAttributes.iterator(), null);
this.newEndElement = factory.createEndElement(new QName(newName), null);
}