private string CallNewTree(string Configuration)
 {
     try
     {
         EndpointSettings set = Newtonsoft.Json.JsonConvert.DeserializeObject<EndpointSettings>(Configuration);
         GetTreeObject TreeObj = new GetTreeObject() { Configuration = set };
         TreeWidget tw = new TreeWidget(TreeObj, null);
         return tw.GetTreeforCache(TreeObj.Configuration.Locale);
     }
     catch (Exception)
     {
         return null;
     }
 }
        public ActionResult GetTreeLocale()
        {
            try
            {
                SessionQuery query = SessionQueryManager.GetSessionQuery(Session);

                EndpointSettings set = query._endpointSettings;
                GetTreeObject TreeObj = new GetTreeObject() { Configuration = set };
                TreeWidget treeWidget = new TreeWidget(TreeObj, null);
                string ret = treeWidget.GetTreeforCache(System.Threading.Thread.CurrentThread.CurrentCulture.TwoLetterISOLanguageName);

                return CS.ReturnForJQuery(ret);
            }
            catch (Exception ex)
            {
                return CS.ReturnForJQuery(ex.Message);
            }
        }