rem: var resource = RDF.GetResource(items[i]); name = BookmarksUtils.getProperty(resource, NC_NS+"Name"); url  = BookmarksUtils.getProperty(resource, NC_NS+"URL" ); items[i] = BookmarksUtils.createBookmark(name, url, null, null); 
add: items[i] = RDF.GetResource(items[i]); 
context:   pasteBookmark: function (aTarget)  {    const kXferableContractID = "@mozilla.org/widget/transferable;1";    const kXferableIID = Components.interfaces.nsITransferable;    var xferable = Components.classes[kXferableContractID].createInstance(kXferableIID);    xferable.addDataFlavor("moz/bookmarkclipboarditem");    xferable.addDataFlavor("text/x-moz-url");    xferable.addDataFlavor("text/unicode");    const kClipboardContractID = "@mozilla.org/widget/clipboard;1";    const kClipboardIID = Components.interfaces.nsIClipboard;    var clipboard = Components.classes[kClipboardContractID].getService(kClipboardIID);    clipboard.getData(xferable, kClipboardIID.kGlobalClipboard);        var flavour = { };    var data    = { };    var length  = { };    xferable.getAnyTransferData(flavour, data, length);    var items, name, url;    data = data.value.QueryInterface(Components.interfaces.nsISupportsString).data;    switch (flavour.value) {    case "moz/bookmarkclipboarditem":      items = data.split("\n");      // since data are ended by \n, remove the last empty node      items.pop();       for (var i=0; i<items.length; ++i) {        var resource = RDF.GetResource(items[i]);        name = BookmarksUtils.getProperty(resource, NC_NS+"Name");        url  = BookmarksUtils.getProperty(resource, NC_NS+"URL" );        items[i] = BookmarksUtils.createBookmark(name, url, null, null);      }      break;    case "text/x-moz-url":      // there should be only one item in this case      var ix = data.indexOf("\n");      items = data.substring(0, ix != -1 ? ix : data.length);      name  = data.substring(ix);      // XXX: we should infer the best charset      BookmarksUtils.createBookmark(null, items, null, name);      items = [items];      break;    default:       return;    }       var selection = {item: items, parent:Array(items.length), length: items.length};    BookmarksUtils.checkSelection(selection);    BookmarksUtils.insertSelection("paste", selection, aTarget, true);  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/199068f98790edc977c1e30a83128d692a43fe8e/bookmarks.js/clean/browser/components/bookmarks/content/bookmarks.js