gRDFService->GetResource(NC_NAMESPACE_URI "RelatedLinksRoot", &kNC_RelatedLinksRoot);
gRDFService->GetResource(kURINC_RelatedLinksRoot, &kNC_RelatedLinksRoot);
RelatedLinksDataSourceCallback::RelatedLinksDataSourceCallback(nsIRDFDataSource *ds, nsIRDFResource *parent)	: mDataSource(ds),	  mParent(parent),	  mParentArray(nsnull),	  mLine(nsnull){	NS_ADDREF(mDataSource);	NS_ADDREF(mParent);	NS_INIT_REFCNT();	if (gRefCnt++ == 0)	{		nsresult rv = nsServiceManager::GetService(kRDFServiceCID,                                                   nsIRDFService::GetIID(),                                                   (nsISupports**) &gRDFService);		PR_ASSERT(NS_SUCCEEDED(rv));		gRDFService->GetResource(NC_NAMESPACE_URI "child", &kNC_Child);		gRDFService->GetResource(NC_NAMESPACE_URI "Name",  &kNC_Name);		gRDFService->GetResource(NC_NAMESPACE_URI "RelatedLinksRoot", &kNC_RelatedLinksRoot);				if (nsnull != (mParentArray = new nsVoidArray()))		{			mParentArray->AppendElement(parent);		}	}}