nsCStringKey key(str.get()); nsCOMPtr<nsIXBLDocumentInfo> info = getter_AddRefs(NS_STATIC_CAST(nsIXBLDocumentInfo*, mXBLDocTable.Get(&key)));
nsCOMPtr<nsIXBLDocumentInfo> info; mXBLDocTable.Get(str, getter_AddRefs(info));
nsXULPrototypeCache::PutXBLDocumentInfo(nsIXBLDocumentInfo* aDocumentInfo){    nsCOMPtr<nsIDocument> doc;    aDocumentInfo->GetDocument(getter_AddRefs(doc));    nsCOMPtr<nsIURI> uri;    doc->GetDocumentURL(getter_AddRefs(uri));    nsCAutoString str;    uri->GetSpec(str);    nsCStringKey key(str.get());    nsCOMPtr<nsIXBLDocumentInfo> info = getter_AddRefs(NS_STATIC_CAST(nsIXBLDocumentInfo*, mXBLDocTable.Get(&key)));    if (!info)        mXBLDocTable.Put(&key, aDocumentInfo);    return NS_OK;}