Components.results.NS_ERROR_FAILURE, 
Components.interfaces.calIErrors.DUPLICATE_ID, 
    adoptItem: function (aItem, aListener) {        if (this.readOnly)             throw Components.interfaces.calIErrors.CAL_IS_READONLY;        // Ensure that we're looking at the base item        // if we were given an occurrence.  Later we can        // optimize this.        if (aItem.parentItem != aItem) {            aItem.parentItem.recurrenceInfo.modifyException(aItem);        }        aItem = aItem.parentItem;        if (aItem.id == null) {            // is this an error?  Or should we generate an IID?            aItem.id = getUUID();        } else {            var olditem = this.getItemById(aItem.id);            if (olditem) {                if (aListener)                    aListener.onOperationComplete (this,                                                   Components.results.NS_ERROR_FAILURE,                                                   aListener.ADD,                                                   aItem.id,                                                   "ID already exists for addItem");                return;            }        }        aItem.calendar = this;        aItem.generation = 1;        aItem.makeImmutable();        this.flushItem (aItem, null);        // notify the listener        if (aListener)            aListener.onOperationComplete (this,                                           Components.results.NS_OK,                                           aListener.ADD,                                           aItem.id,                                           aItem);        // notify observers        this.observeAddItem(aItem);    },
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/9a4a610f46e352dc9f61d73f19ec14fa438d1452/calStorageCalendar.js/buggy/calendar/providers/storage/calStorageCalendar.js