Index: /applications/editors/josm/plugins/routing/build.xml
===================================================================
--- /applications/editors/josm/plugins/routing/build.xml	(revision 34553)
+++ /applications/editors/josm/plugins/routing/build.xml	(revision 34554)
@@ -5,5 +5,5 @@
     <property name="commit.message" value="added one-way support in roundabouts"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="12987"/>
+    <property name="plugin.main.version" value="14153"/>
 
     <!--
Index: /applications/editors/josm/plugins/routing/src/com/innovant/josm/jrt/core/RoutingProfile.java
===================================================================
--- /applications/editors/josm/plugins/routing/src/com/innovant/josm/jrt/core/RoutingProfile.java	(revision 34553)
+++ /applications/editors/josm/plugins/routing/src/com/innovant/josm/jrt/core/RoutingProfile.java	(revision 34554)
@@ -6,5 +6,5 @@
 
 import org.apache.log4j.Logger;
-import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.data.Preferences;
 
 
@@ -77,5 +77,5 @@
         this.name = name;
         waySpeeds = new HashMap<>();
-        Map<String, String> prefs = Main.pref.getAllPrefix("routing.profile."+name+".speed");
+        Map<String, String> prefs = Preferences.main().getAllPrefix("routing.profile."+name+".speed");
         for (String key:prefs.keySet()) {
             waySpeeds.put((key.split("\\.")[4]), Double.valueOf(prefs.get(key)));
Index: /applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/RoutingLayer.java
===================================================================
--- /applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/RoutingLayer.java	(revision 34553)
+++ /applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/RoutingLayer.java	(revision 34554)
@@ -21,5 +21,4 @@
 
 import org.apache.log4j.Logger;
-import org.openstreetmap.josm.Main;
 import org.openstreetmap.josm.actions.RenameLayerAction;
 import org.openstreetmap.josm.data.Bounds;
@@ -35,4 +34,5 @@
 import org.openstreetmap.josm.gui.layer.Layer;
 import org.openstreetmap.josm.gui.layer.OsmDataLayer;
+import org.openstreetmap.josm.spi.preferences.Config;
 import org.openstreetmap.josm.tools.ColorHelper;
 import org.openstreetmap.josm.tools.ImageProvider;
@@ -214,8 +214,8 @@
 
         // Get path stroke width from preferences
-        String widthString = Main.pref.get(PreferencesKeys.KEY_ROUTE_WIDTH.key);
+        String widthString = Config.getPref().get(PreferencesKeys.KEY_ROUTE_WIDTH.key);
         if (widthString.length() == 0) {
             widthString = "2";                        /* I think 2 is better  */
-            // FIXME add after good width is found: Main.pref.put(KEY_ROUTE_WIDTH, widthString);
+            // FIXME add after good width is found: Config.getPref().put(KEY_ROUTE_WIDTH, widthString);
         }
         int width = Integer.parseInt(widthString);
Index: /applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/gui/RoutingPreferenceDialog.java
===================================================================
--- /applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/gui/RoutingPreferenceDialog.java	(revision 34553)
+++ /applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/gui/RoutingPreferenceDialog.java	(revision 34554)
@@ -27,7 +27,8 @@
 
 import org.apache.log4j.Logger;
-import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.data.Preferences;
 import org.openstreetmap.josm.gui.preferences.DefaultTabPreferenceSetting;
 import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
+import org.openstreetmap.josm.spi.preferences.Config;
 import org.openstreetmap.josm.tools.GBC;
 
@@ -156,10 +157,10 @@
                 String origValue = orig.get(key);
                 if (origValue == null || !origValue.equals(value))
-                    Main.pref.put(key, value);
+                    Config.getPref().put(key, value);
                 orig.remove(key); // processed.
             }
         }
         for (Entry<String, String> e : orig.entrySet()) {
-            Main.pref.put(e.getKey(), null);
+            Config.getPref().put(e.getKey(), null);
         }
         return false;
@@ -189,12 +190,12 @@
 
     private void readPreferences() {
-        orig = Main.pref.getAllPrefix("routing.profile.default.speed");
+        orig = Preferences.main().getAllPrefix("routing.profile.default.speed");
         if (orig.size() == 0) { // defaults
             logger.debug("Loading Default Preferences.");
             for (OsmWayTypes owt : OsmWayTypes.values()) {
-                Main.pref.putInt("routing.profile.default.speed."
+                Config.getPref().putInt("routing.profile.default.speed."
                         + owt.getTag(), owt.getSpeed());
             }
-            orig = Main.pref.getAllPrefix("routing.profile.default.speed");
+            orig = Preferences.main().getAllPrefix("routing.profile.default.speed");
         } else logger.debug("Default preferences already exist.");
     }
