public XMLEventWriterRecord(XMLEventWriter xmlEventWriter) {
this.xmlEventWriter = xmlEventWriter;
this.prefixMapping = new HashMap<String, String>();
this.xmlEventFactory = XMLEventFactory.newInstance();
this.domToXMLEventWriter = new DomToXMLEventWriter(xmlEventFactory);
attributes = new ArrayList();
namespaceDeclarations = new ArrayList();
}