nsCOMPtr<nsIURI> uri(getter_AddRefs(doc->GetDocumentURL())); nsXPIDLCString str; uri->GetSpec(getter_Copies(str));  nsCStringKey key((const char*)str); mDocumentTable->Put(&key, aDocumentInfo);
nsBindingManager::PutXBLDocumentInfo(nsIXBLDocumentInfo* aDocumentInfo){  if (!mDocumentTable)    mDocumentTable = new nsSupportsHashtable();  nsCOMPtr<nsIDocument> doc;  aDocumentInfo->GetDocument(getter_AddRefs(doc));  nsCOMPtr<nsIURI> uri(getter_AddRefs(doc->GetDocumentURL()));  nsXPIDLCString str;  uri->GetSpec(getter_Copies(str));    nsCStringKey key((const char*)str);  mDocumentTable->Put(&key, aDocumentInfo);  return NS_OK;}