nsIScriptNameSetRegistry* registry;
nsMessengerBootstrap::Initialize(){  nsresult rv;  rv = nsServiceManager::GetService(kCScriptNameSetRegistryCID,                                     nsIScriptNameSetRegistry::GetIID(),                                    (nsISupports**)&registry);  if (NS_FAILED(rv))    return rv;  nsMessengerNameSet* nameSet = new nsMessengerNameSet();  if (nameSet == nsnull)    rv = NS_ERROR_OUT_OF_MEMORY;  else    rv = registry->AddExternalNameSet(nameSet);  (void)nsServiceManager::ReleaseService(kCScriptNameSetRegistryCID,                                          registry);  return rv;}