private void InitPaths()
        {
            if (!string.IsNullOrEmpty(root))
            {
                return;
            }
            root = appSettingsManager.GetAppSetting("LocalBlobPath");
            if (string.IsNullOrWhiteSpace(root))
            {
                throw new Exception("AppSetting LocalBlobPath is not defined");
            }

            if (!Directory.Exists(root))
            {
                throw new Exception(string.Format("LocalBlobPath '{0}' does not exists", root));
            }

            publicPath = Path.Combine(root, "public");
            if (!Directory.Exists(publicPath))
            {
                Directory.CreateDirectory(publicPath);
            }

            securePath = Path.Combine(root, "secure");
            if (!Directory.Exists(securePath))
            {
                Directory.CreateDirectory(securePath);
            }
        }