/// <summary>
        /// Saves a MySettings file to disk.
        /// The file will be stored in separate folder unique for the user.
        /// </summary>
        /// <param name="userContext">The user context.</param>
        /// <param name="settingsName">The settings name.</param>
        /// <param name="mySettings">The MySettings object.</param>
        public static void SaveToDisk(IUserContext userContext, string settingsName, MySettings mySettings)
        {
            if (string.IsNullOrEmpty(settingsName))
            {
                throw new Exception("Name is empty");
            }

            if (mySettings.IsNull())
            {
                throw new Exception("MySettings object is null");
            }

            if (userContext.IsNull() || userContext.User.IsNull() || string.IsNullOrEmpty(userContext.User.UserName))
            {
                throw new Exception("User object is not initialized");
            }

            string fileName = GetFilePath(settingsName, userContext.User.UserName);

            SaveGZipFileToDisk(fileName, mySettings);
            //SaveFileToDisk(fileName, mySettings);
        }
        /// <summary>
        /// Saves a MySettings file to disk.
        /// </summary>
        /// <param name="settingsName">This will be the name of the settings file.</param>
        /// <param name="mySettings">MySettings object.</param>
        public static void SaveToDisk(string settingsName, MySettings mySettings)
        {
            if (string.IsNullOrEmpty(settingsName))
            {
                throw new Exception("name is empty");
            }

            if (mySettings.IsNull())
            {
                throw new Exception("MySettings object is null");
            }

            try
            {
                string fileName = GetFileName(settingsName);
                //SaveFileToDisk(fileName, mySettings);
                SaveGZipFileToDisk(fileName, mySettings);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }