NS_INIT_REFCNT();
ContainerCursorImpl::ContainerCursorImpl(nsIRDFDataSource* ds,                                         nsIRDFNode* container)    : mDataSource(ds), mContainer(container), mNext(nsnull), mCounter(1){    NS_ASSERTION(ds != nsnull, "null ptr");    NS_ASSERTION(container != nsnull, "null ptr");    NS_IF_ADDREF(mDataSource);    NS_IF_ADDREF(mContainer);    nsresult rv;    rv = nsServiceManager::GetService(kRDFResourceManagerCID,                                      kIRDFResourceManagerIID,                                      (nsISupports**) &mResourceMgr);    NS_ASSERTION(NS_SUCCEEDED(rv), "unable to acquire resource manager");    NS_ASSERTION(rdf_IsContainer(mResourceMgr, mDataSource, container), "not a container");    SkipToNext();}