gRDF->GetResource(NS_LITERAL_CSTRING(RDF_NAMESPACE_URI "instanceOf"), &kRDF_instanceOf);
bm_AddRefGlobals(){    if (gRefCnt++ == 0)    {        nsresult rv;        rv = CallGetService(kRDFServiceCID, &gRDF);        NS_ASSERTION(NS_SUCCEEDED(rv), "unable to get RDF service");        if (NS_FAILED(rv)) return rv;        rv = CallGetService(kRDFContainerUtilsCID, &gRDFC);        NS_ASSERTION(NS_SUCCEEDED(rv), "unable to get RDF container utils");        if (NS_FAILED(rv)) return rv;        rv = CallGetService(kCharsetAliasCID, &gCharsetAlias);        NS_ASSERTION(NS_SUCCEEDED(rv), "unable to get charset alias service");        if (NS_FAILED(rv)) return rv;        gRDF->GetResource(NS_LITERAL_CSTRING(kURINC_BookmarksTopRoot),                          &kNC_BookmarksTopRoot);        gRDF->GetResource(NS_LITERAL_CSTRING(kURINC_BookmarksRoot),                          &kNC_BookmarksRoot);        gRDF->GetResource(NS_LITERAL_CSTRING(kURINC_IEFavoritesRoot),                          &kNC_IEFavoritesRoot);        gRDF->GetResource(NS_LITERAL_CSTRING(kURINC_SystemBookmarksStaticRoot),                          &kNC_SystemBookmarksStaticRoot);        gRDF->GetResource(NS_LITERAL_CSTRING("NC:LastModifiedFoldersRoot"),                           &kNC_LastModifiedFoldersRoot);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "child"),                          &kNC_child);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "BookmarksToolbarFolder"),                          &kNC_BookmarksToolbarFolder);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "Bookmark"),                          &kNC_Bookmark);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "BookmarkSeparator"),                          &kNC_BookmarkSeparator);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "BookmarkAddDate"),                          &kNC_BookmarkAddDate);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "Description"),                          &kNC_Description);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "Folder"),                          &kNC_Folder);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "IEFavorite"),                          &kNC_IEFavorite);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "IEFavoriteFolder"),                          &kNC_IEFavoriteFolder);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "Name"),                          &kNC_Name);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "Icon"),                          &kNC_Icon);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "ShortcutURL"),                          &kNC_ShortcutURL);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "FeedURL"),                          &kNC_FeedURL);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "URL"),                          &kNC_URL);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "WebPanel"),                          &kNC_WebPanel);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "PostData"),                          &kNC_PostData);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "Livemark"),                          &kNC_Livemark);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "LivemarkLock"),                          &kNC_LivemarkLock);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "LivemarkExpiration"),                          &kNC_LivemarkExpiration);        gRDF->GetResource(NS_LITERAL_CSTRING(RDF_NAMESPACE_URI "type"),                          &kRDF_type);        gRDF->GetResource(NS_LITERAL_CSTRING(RDF_NAMESPACE_URI "nextVal"),                          &kRDF_nextVal);        gRDF->GetResource(NS_LITERAL_CSTRING(WEB_NAMESPACE_URI "LastModifiedDate"),                          &kWEB_LastModifiedDate);        gRDF->GetResource(NS_LITERAL_CSTRING(WEB_NAMESPACE_URI "LastVisitDate"),                          &kWEB_LastVisitDate);        gRDF->GetResource(NS_LITERAL_CSTRING(WEB_NAMESPACE_URI "LastCharset"),                          &kWEB_LastCharset);        gRDF->GetResource(NS_LITERAL_CSTRING(WEB_NAMESPACE_URI "Schedule"),                          &kWEB_Schedule);        gRDF->GetResource(NS_LITERAL_CSTRING(WEB_NAMESPACE_URI "ScheduleFlag"),                          &kWEB_ScheduleActive);        gRDF->GetResource(NS_LITERAL_CSTRING(WEB_NAMESPACE_URI "status"),                          &kWEB_Status);        gRDF->GetResource(NS_LITERAL_CSTRING(WEB_NAMESPACE_URI "LastPingDate"),                          &kWEB_LastPingDate);        gRDF->GetResource(NS_LITERAL_CSTRING(WEB_NAMESPACE_URI "LastPingETag"),                          &kWEB_LastPingETag);        gRDF->GetResource(NS_LITERAL_CSTRING(WEB_NAMESPACE_URI "LastPingModDate"),                          &kWEB_LastPingModDate);        gRDF->GetResource(NS_LITERAL_CSTRING(WEB_NAMESPACE_URI "LastPingContentLen"),                          &kWEB_LastPingContentLen);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "parent"), &kNC_Parent);        gRDF->GetLiteral(NS_LITERAL_STRING("true").get(), &kTrueLiteral);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "command?cmd=newbookmark"),                          &kNC_BookmarkCommand_NewBookmark);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "command?cmd=newfolder"),                          &kNC_BookmarkCommand_NewFolder);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "command?cmd=newseparator"),                          &kNC_BookmarkCommand_NewSeparator);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "command?cmd=deletebookmark"),                          &kNC_BookmarkCommand_DeleteBookmark);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "command?cmd=deletebookmarkfolder"),                          &kNC_BookmarkCommand_DeleteBookmarkFolder);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "command?cmd=deletebookmarkseparator"),                          &kNC_BookmarkCommand_DeleteBookmarkSeparator);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "command?cmd=setpersonaltoolbarfolder"),                          &kNC_BookmarkCommand_SetPersonalToolbarFolder);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "command?cmd=import"),                          &kNC_BookmarkCommand_Import);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "command?cmd=export"),                          &kNC_BookmarkCommand_Export);        gRDF->GetResource(NS_LITERAL_CSTRING(NC_NAMESPACE_URI "command?cmd=refreshlivemark"),                          &kNC_BookmarkCommand_RefreshLivemark);        gRDF->GetResource(NS_LITERAL_CSTRING(DEVMO_NAMESPACE_URI_PREFIX "forward-proxy#forward-proxy"),                          &kForwardProxy);        /* RSS Resources */        gRDF->GetResource(NS_LITERAL_CSTRING(RSS09_NAMESPACE_URI "channel"),                          &kRSS09_channel);        gRDF->GetResource(NS_LITERAL_CSTRING(RSS09_NAMESPACE_URI "item"),                          &kRSS09_item);        gRDF->GetResource(NS_LITERAL_CSTRING(RSS09_NAMESPACE_URI "title"),                          &kRSS09_title);        gRDF->GetResource(NS_LITERAL_CSTRING(RSS09_NAMESPACE_URI "link"),                          &kRSS09_link);        gRDF->GetResource(NS_LITERAL_CSTRING(RSS10_NAMESPACE_URI "channel"),                          &kRSS10_channel);        gRDF->GetResource(NS_LITERAL_CSTRING(RSS10_NAMESPACE_URI "items"),                          &kRSS10_items);        gRDF->GetResource(NS_LITERAL_CSTRING(RSS10_NAMESPACE_URI "title"),                          &kRSS10_title);        gRDF->GetResource(NS_LITERAL_CSTRING(RSS10_NAMESPACE_URI "link"),                          &kRSS10_link);        gRDF->GetResource(NS_LITERAL_CSTRING(DC_NAMESPACE_URI "date"),                          &kDC_date);    }    return NS_OK;}