PR_LOG(gLog, PR_LOG_ALWAYS, ("rdfxml[%p] flush(%s) %sblocking", this, mURLSpec));
RDFXMLDataSourceImpl::Flush(void){    if (!mIsWritable || !mIsDirty)        return NS_OK;    NS_PRECONDITION(mURLSpec != nsnull, "not initialized");    if (! mURLSpec)        return NS_ERROR_NOT_INITIALIZED;    nsresult rv;    // XXX Replace this with channels someday soon...    nsFileURL url(mURLSpec);    nsFileSpec path(url);    nsOutputFileStream out(path);    if (! out.is_open())        return NS_ERROR_FAILURE;    nsCOMPtr<nsIOutputStream> outIStream = out.GetIStream();    if (NS_FAILED(rv = Serialize(outIStream)))        goto done;    mIsDirty = PR_FALSE;done:    return NS_OK;}