if (this.findCalendarID(calendar) > 0) { 
if (calendar.id > 0) { 
    registerCalendar: function(calendar) {        // bail if this calendar (or one that looks identical to it) is already registered        if (this.findCalendarID(calendar) > 0) {            dump ("registerCalendar: calendar already registered\n");            throw Components.results.NS_ERROR_FAILURE;        }        // Add an observer to track readonly-mode triggers        var newObserver = new errorAnnouncer(calendar);        calendar.addObserver(newObserver.observer);        var pp = this.mRegisterCalendar.params;        pp.type = calendar.type;        pp.uri = calendar.uri.spec;        this.mRegisterCalendar.step();        this.mRegisterCalendar.reset();        //dump("adding [" + this.mDB.lastInsertRowID + "]\n");        //this.mCache[this.mDB.lastInsertRowID] = calendar;        this.mCache[this.findCalendarID(calendar)] = calendar;        this.notifyObservers("onCalendarRegistered", [calendar]);    },
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/5c2eff62f489d5c91d466c614db49972e886f55c/calCalendarManager.js/buggy/calendar/base/src/calCalendarManager.js