@Override
protected XMLStreamWriter getJSONWriter(Writer writer) {
// Replace DefaultConverter by SimpleConverter because we need to consider every XML element
// as a String when processing
Configuration configuration = new Configuration();
configuration.setTypeConverter(new SimpleConverter());
MappedNamespaceConvention mnc = new MappedNamespaceConvention(configuration);
return new MappedXMLStreamWriter(mnc, writer);
}