public void run() {
try {
nsIComponentRegistrar registrar = MozillaXPCOM.Mozilla.getComponentRegistrar();
String NS_DOWNLOAD_CID = "e3fa9D0a-1dd1-11b2-bdef-8c720b597445";
String NS_TRANSFER_CONTRACTID = "@mozilla.org/transfer;1";
registrar.registerFactory(NS_DOWNLOAD_CID, "Transfer", NS_TRANSFER_CONTRACTID, new nsIFactory() {
public nsISupports queryInterface(String uuid) {
if(uuid.equals(nsIFactory.NS_IFACTORY_IID) || uuid.equals(nsIFactory.NS_ISUPPORTS_IID)) {
return this;
}
return null;