nsIDocument* olddoc = NS_STATIC_CAST(nsIDocument*, mXBLDocTable.Put(&key, aDocument)); NS_IF_RELEASE(olddoc);
mXBLDocTable.Put(&key, aDocument);
nsXULPrototypeCache::PutXBLDocument(nsIDocument *aDocument){    nsCOMPtr<nsIURI> uri(aDocument->GetDocumentURL());    char* aString;    uri->GetSpec(&aString);    nsStringKey key(aString);    nsIDocument* olddoc = NS_STATIC_CAST(nsIDocument*, mXBLDocTable.Put(&key, aDocument));    NS_IF_RELEASE(olddoc);    return NS_OK;}