public void addListener(String address, int port, HttpUrl base, String simulator, boolean usePlugins) throws IOException { Listener l = createListener(address, port, base, simulator, usePlugins);
public void addListener(String address, int port, HttpUrl base, String simulator, boolean usePlugins, boolean primary) throws IOException { Listener l = createListener(address, port, base, simulator, usePlugins, primary);
    public void addListener(String address, int port, HttpUrl base, String simulator, boolean usePlugins) throws IOException {        Listener l = createListener(address, port, base, simulator, usePlugins);        startListener(l);                String key = l.getKey();        Preferences.setPreference("Proxy.listener." + key + ".base", base == null ? "" : base.toString());        Preferences.setPreference("Proxy.listener." + key + ".useplugins", usePlugins == true ? "yes" : "no");        Preferences.setPreference("Proxy.listener." + key + ".simulator", simulator);                String value = null;        Iterator i = _listeners.keySet().iterator();        while (i.hasNext()) {            key = (String) i.next();            if (value == null) {                value = key;            } else {                value = value + ", " + key;            }        }        Preferences.setPreference("Proxy.listeners", value);    }