/// <summary>
        /// Informs the core journal that the user has earned a new privilege.
        /// </summary>
        /// <param name="objPrivilege"></param>
        /// <param name="title"></param>
        /// <param name="summary"></param>
        /// <param name="portalId"></param>
        /// <param name="tabId"></param>
        /// <param name="journalUserId"></param>
        /// <param name="url"></param>
        internal void AddPrivilegeToJournal(QaSettingInfo objPrivilege, string title, string summary, int portalId, int tabId, int journalUserId, string url)
        {
            var objectKey = Constants.ContentTypeName + "_" + Constants.JournalPrivilegeTypeName + "_" + objPrivilege.Key;
            var ji = JournalController.Instance.GetJournalItemByKey(portalId, objectKey);

            if ((ji != null))
            {
                JournalController.Instance.DeleteJournalItemByKey(portalId, objectKey);
            }

            ji = new JournalItem
            {
                PortalId = portalId,
                ProfileId = journalUserId,
                UserId = journalUserId,
                Title = title,
                ItemData = new ItemData { Url = url },
                Summary = "", // summary,
                Body = null,
                JournalTypeId = GetPrivilegeJournalTypeID(portalId),
                ObjectKey = objectKey,
                SecuritySet = "E,"
            };

            JournalController.Instance.SaveJournalItem(ji, tabId);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="key"></param>
        /// <param name="value"></param>
        /// <returns></returns>
        private static QaSettingInfo BuildUserScore(string key, int value)
        {
            var objUserScore = new QaSettingInfo
            {
                Key = key,
                Name = @"Score_" + key,
                Description = @"Score_" + key + @"_Desc",
                Value = value
            };

            return objUserScore;
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="key"></param>
        /// <param name="value"></param>
        /// <returns></returns>
        private static QaSettingInfo BuildPrivilege(string key, int value)
        {
            var objPrivilege = new QaSettingInfo
            {
                Key = key,
                Name = @"Priv_" + key,
                Description = @"Priv_" + key + @"_Desc",
                Value = value
            };

            return objPrivilege;
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="key"></param>
        /// <param name="value"></param>
        /// <returns></returns>
        private static QaSettingInfo BuildOpThreshold(string key, int value)
        {
            var objThreshold = new QaSettingInfo
            {
                Key = key,
                Name = @"OpThresh_" + key,
                Description = @"OpThresh_" + key + @"_Desc",
                Value = value
            };

            return objThreshold;
        }