Index: applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java
===================================================================
--- applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java	(revision 25841)
+++ applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java	(revision 27242)
@@ -63,4 +63,5 @@
 import org.openstreetmap.josm.io.GpxWriter;
 import org.openstreetmap.josm.io.OsmWriter;
+import org.openstreetmap.josm.io.OsmWriterFactory;
 import org.openstreetmap.josm.plugins.Plugin;
 import org.openstreetmap.josm.plugins.PluginInformation;
@@ -499,5 +500,5 @@
 				try { printWriter = new PrintWriter(new OutputStreamWriter(outputStream, "utf-8")); }
 				catch (Exception e) {e.printStackTrace();}
-				final OsmWriter osmWriter = new OsmWriter(printWriter, true, null);
+				final OsmWriter osmWriter = OsmWriterFactory.createOsmWriter(printWriter, true, null);
 				Collection<OsmPrimitive> refObjects = currentCommand.getDepsObjects();
 				Collection<OsmPrimitive> pObjects;
