*/
public void setOutputStream(OutputStream outputStream) {
try {
this.writer = XMLOutputFactory.newInstance().createXMLEventWriter(outputStream, "UTF-8");
} catch (XMLStreamException e) {
throw new SetupException("Error during setup an XMLEventWriter on the outputStream", e);
} catch (FactoryConfigurationError e) {
throw new SetupException("Error during setup the XMLOutputFactory for creating an XMLEventWriter", e);
}
}