nsIRDFResource* folderResource, const PRUnichar* name)
nsIDOMXULElement* folder, const char* name)
nsMessenger::RenameFolder(nsIRDFCompositeDataSource* db,                          nsIRDFResource* folderResource,                          const PRUnichar* name){  nsresult rv = NS_ERROR_NULL_POINTER;  if (!db || !folderResource || !name || !*name) return rv;    nsCOMPtr<nsISupportsArray> folderArray;    nsCOMPtr<nsISupportsArray> argsArray;  rv = NS_NewISupportsArray(getter_AddRefs(folderArray));  if (NS_FAILED(rv)) return rv;  folderArray->AppendElement(folderResource);  rv = NS_NewISupportsArray(getter_AddRefs(argsArray));  if (NS_FAILED(rv)) return rv;  nsCOMPtr<nsIRDFService> rdfService(do_GetService(kRDFServiceCID, &rv));  if(NS_SUCCEEDED(rv))  {    nsCOMPtr<nsIRDFLiteral> nameLiteral;    rdfService->GetLiteral(name, getter_AddRefs(nameLiteral));    argsArray->AppendElement(nameLiteral);    rv = DoCommand(db, NC_RDF_RENAME, folderArray, argsArray);  }  return rv;}