/// <summary>
        /// Put Ajax data into a NBrightInfo class for processing
        /// </summary>
        /// <param name="context">Http context</param>
        /// <param name="updatefields">If true only fields marked with update attribute are returned.</param>
        /// <returns></returns>
        private NBrightInfo GetAjaxInfo(HttpContext context, Boolean updatefields = false)
        {
            var strIn = HttpUtility.UrlDecode(Utils.RequestParam(context, "inputxml"));

            var objInfo = new NBrightInfo();

            objInfo.ItemID = -1;
            objInfo.TypeCode = "AJAXDATA";
            objInfo.PortalId = PortalSettings.Current.PortalId;
            if (updatefields)
            {
                objInfo.UpdateAjax(strIn);
            }
            else
            {
                var xmlData = GenXmlFunctions.GetGenXmlByAjax(strIn, "");
                objInfo.XMLData = xmlData;
            }
            var dic = objInfo.ToDictionary();
            // set langauge if we have it passed.
            if (dic.ContainsKey("lang") && dic["lang"] != "") _lang = dic["lang"];

            // set the context  culturecode, so any DNN functions use the correct culture (entryurl tag token)
            if (_lang != "" && _lang != System.Threading.Thread.CurrentThread.CurrentCulture.ToString()) System.Threading.Thread.CurrentThread.CurrentCulture = new CultureInfo(_lang);
            objInfo.Lang = _lang; // make sure we have the langauge in the object.

            return objInfo;
        }