var container = Components.classes["@mozilla.org/rdf/container;1"].createInstance(); if (container) { container = container.QueryInterface(Components.interfaces.nsIRDFContainer); if (container) { var containerRes = gRDF.GetUnicodeResource("urn:mimetypes:root"); container.Init(this._DS, containerRes); var element = gRDF.GetUnicodeResource(MIME_URI(this.mimeType)); if (container.IndexOf(element) == -1) container.AppendElement(element); } } 
var container = this.ensureAndGetTypeList("mimetype"); var element = gRDF.GetUnicodeResource(MIME_URI(this.mimeType)); if (container.IndexOf(element) == -1) container.AppendElement(element); 
  buildLinks: function()  {    // assert the handler resource    var mimeSource = gRDF.GetUnicodeResource(MIME_URI(this.mimeType));    var handlerProperty = gRDF.GetUnicodeResource(NC_URI("handlerProp"));    var handlerResource = gRDF.GetUnicodeResource(HANDLER_URI(this.mimeType));    this._DS.Assert(mimeSource, handlerProperty, handlerResource, true);    // assert the helper app resource    var helperAppProperty = gRDF.GetUnicodeResource(NC_URI("externalApplication"));    var helperAppResource = gRDF.GetUnicodeResource(APP_URI(this.mimeType));    this._DS.Assert(handlerResource, helperAppProperty, helperAppResource, true);    // add the mime type to the MIME types seq    var container = Components.classes["@mozilla.org/rdf/container;1"].createInstance();    if (container) {      container = container.QueryInterface(Components.interfaces.nsIRDFContainer);      if (container) {        var containerRes = gRDF.GetUnicodeResource("urn:mimetypes:root");        container.Init(this._DS, containerRes);        var element = gRDF.GetUnicodeResource(MIME_URI(this.mimeType));        if (container.IndexOf(element) == -1)          container.AppendElement(element);      }    }  }, 
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/4a0d8770e1cc01fab969cb0826dfd59311cd2c32/helperApps.js/clean/toolkit/mozapps/downloads/content/helperApps.js