if ( scriptListeners != null && scriptListeners.remove(listener.getEvent()) != null && listener.getScript() != null ) {
if (scriptListeners != null && scriptListeners.remove(listener) && listener.getScript() != null) {
    public final synchronized void removeScriptListener(ScriptListener listener) {        if (listener == null)            return;        if ( scriptListeners != null             && scriptListeners.remove(listener.getEvent()) != null             && listener.getScript() != null ) {            reload(ReloadManager.RELOAD_SCRIPT);        }    }