if (aDocument) { if (nsnull == mTimer) { NS_VERIFY(NS_SUCCEEDED(NS_NewTimer(&mTimer)), "couldn't get timer"); if (mTimer) { mTimer->Init(this,  1L); } } } else { if (mTimer) { mTimer->Cancel(); NS_RELEASE(mTimer); mTimer = nsnull; } }
RDFGenericBuilderImpl::SetDocument(nsIRDFDocument* aDocument){    // note: null now allowed, it indicates document going away    mDocument = aDocument; // not refcounted    if (aDocument)    {    	if (nsnull == mTimer)    	{		NS_VERIFY(NS_SUCCEEDED(NS_NewTimer(&mTimer)), "couldn't get timer");		if (mTimer)		{			mTimer->Init(this, /* PR_TRUE, */ 1L);		}	}    }    else    {    	if (mTimer)    	{    		mTimer->Cancel();    		NS_RELEASE(mTimer);    		mTimer = nsnull;    	}    }    return NS_OK;}