NS_WITH_SERVICE(nsIRDFContainerUtils, rdfc, kRDFContainerUtilsCID, &res); if (NS_FAILED(res)) return res;
nsIRDFContainerUtils * rdfUtil = NULL; res = nsServiceManager::GetService(kRDFContainerUtilsCID, NS_GET_IID(nsIRDFContainerUtils), (nsISupports **)&rdfUtil); if (NS_FAILED(res)) goto done;
nsresult nsCharsetMenu::Init() {  nsresult res;  res = nsServiceManager::GetService(kRDFServiceCID, kIRDFServiceIID,     (nsISupports**) &gRDFService );  if (NS_FAILED(res)) return res;  gRDFService->GetResource(kURINC_CharsetMenuRoot, &kNC_CharsetMenuRoot);  gRDFService->GetResource(kURINC_Name, &kNC_Name);  res = nsComponentManager::CreateInstance(kRDFInMemoryDataSourceCID, nsnull,     kIRDFDataSourceIID, (void**) &mInner);  if (NS_FAILED(res)) return res;  NS_WITH_SERVICE(nsIRDFContainerUtils, rdfc, kRDFContainerUtilsCID, &res);  if (NS_FAILED(res)) return res;  res = rdfc->MakeSeq(mInner, kNC_CharsetMenuRoot, NULL);  if (NS_FAILED(res)) return res;  res = gRDFService->RegisterDataSource(this, PR_FALSE);  return res;}