return getOutputFactory().createXMLStreamWriter(writer);
return transformer.getOutputFactory().createXMLStreamWriter(writer);
    public XMLStreamWriter createStreamWriter(Writer writer) throws XMLStreamException {        return getOutputFactory().createXMLStreamWriter(writer);    }