scriptListeners.put(listener.getEvent(), listener);
scriptListeners.add(listener);
    public final synchronized void addScriptListener(ScriptListener listener) {        if (listener == null)            return;        // lazyly create HashMap        if ( scriptListeners==null ) {            scriptListeners = new HashMap();        }        scriptListeners.put(listener.getEvent(), listener);        if (listener.getScript() != null) {            reload(ReloadManager.RELOAD_SCRIPT);        }    }