return new JettisonStaxWriter(new QNameMap(), mof.createXMLStreamWriter(writer), convention);
} else {
return new StaxWriter(new QNameMap(), mof.createXMLStreamWriter(writer));
}
} catch (final XMLStreamException e) {
throw new StreamException(e);
}
}