if (! kNC_Child) { getRDFService()->GetResource(kURINC_child, &kNC_Child); getRDFService()->GetResource(kURINC_Name, &kNC_Name); getRDFService()->GetResource(kURINC_Account, &kNC_Account); getRDFService()->GetResource(kURINC_Server, &kNC_Server); getRDFService()->GetResource(kURINC_Identity, &kNC_Identity);
if (gAccountManagerResourceRefCnt++ == 0) { getRDFService()->GetResource(NC_RDF_CHILD, &kNC_Child); getRDFService()->GetResource(NC_RDF_NAME, &kNC_Name); getRDFService()->GetResource(NC_RDF_NAME_SORT, &kNC_NameSort); getRDFService()->GetResource(NC_RDF_PAGETAG, &kNC_PageTag); getRDFService()->GetResource(NC_RDF_ACCOUNT, &kNC_Account); getRDFService()->GetResource(NC_RDF_SERVER, &kNC_Server); getRDFService()->GetResource(NC_RDF_IDENTITY, &kNC_Identity); getRDFService()->GetResource(NC_RDF_PAGETITLE_MAIN, &kNC_PageTitleMain); getRDFService()->GetResource(NC_RDF_PAGETITLE_SERVER, &kNC_PageTitleServer); getRDFService()->GetResource(NC_RDF_PAGETITLE_COPIES, &kNC_PageTitleCopies); getRDFService()->GetResource(NC_RDF_PAGETITLE_ADVANCED, &kNC_PageTitleAdvanced); getRDFService()->GetResource(NC_RDF_PAGETITLE_SMTP, &kNC_PageTitleSMTP);  getRDFService()->GetResource(NC_RDF_ACCOUNTROOT, &kNC_AccountRoot);    getRDFService()->GetResource(NC_RDF_SETTINGS, &kNC_Settings);
nsMsgAccountManagerDataSource::Init(const char *uri){    nsMsgRDFDataSource::Init(uri);    nsresult rv=NS_OK;    fprintf(stderr, "nsMsgAccountManagerDataSource::Init(%s)\n", uri ? uri : "(null)");        if (!mAccountManager) {        NS_WITH_SERVICE(nsIMsgMailSession, mailSession,                        kMsgMailSessionCID, &rv);        if (NS_FAILED(rv)) return rv;                // maybe the account manager should be a service too? not sure.        rv = mailSession->GetAccountManager(&mAccountManager);        if (NS_FAILED(rv)) return rv;    }        if (! kNC_Child) {      getRDFService()->GetResource(kURINC_child, &kNC_Child);      getRDFService()->GetResource(kURINC_Name, &kNC_Name);      getRDFService()->GetResource(kURINC_Account, &kNC_Account);      getRDFService()->GetResource(kURINC_Server, &kNC_Server);      getRDFService()->GetResource(kURINC_Identity, &kNC_Identity);    }    return NS_OK;}