Index: /applications/editors/josm/plugins/CommandLine/build.xml
===================================================================
--- /applications/editors/josm/plugins/CommandLine/build.xml	(revision 27241)
+++ /applications/editors/josm/plugins/CommandLine/build.xml	(revision 27242)
@@ -4,5 +4,5 @@
     <property name="commit.message" value="Moar bugfixes"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="4549"/>
+    <property name="plugin.main.version" value="4645"/>
     <!--
       ************************************************
Index: /applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java
===================================================================
--- /applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java	(revision 27241)
+++ /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;
