public bool IsAutoPublishEnabled()
 {
     try
     {
         var configString             = this.ProjectConfigString;
         var configObject             = JsonConvert.DeserializeObject <dynamic>(configString);
         var customSourceSyncSettings = configObject["custom_source_sync"];
         if (customSourceSyncSettings != null)
         {
             CustomSourceSynModel customSourceSync = JsonConvert.DeserializeObject <CustomSourceSynModel>(customSourceSyncSettings.ToString());
             if (customSourceSync != null)
             {
                 return(customSourceSync.auto_publish);
             }
             else
             {
                 return(false);
             }
         }
         else
         {
             return(false);
         }
     }
     catch (Exception ex)
     {
         return(false);
     }
 }
 public string GetSourceSyncExcludeRegex()
 {
     try
     {
         var configString             = this.ProjectConfigString;
         var configObject             = JsonConvert.DeserializeObject <dynamic>(configString);
         var customSourceSyncSettings = configObject["custom_source_sync"];
         if (customSourceSyncSettings != null)
         {
             CustomSourceSynModel customSourceSync = JsonConvert.DeserializeObject <CustomSourceSynModel>(customSourceSyncSettings.ToString());
             if (customSourceSync != null)
             {
                 return(customSourceSync.resource_removal_exclude);
             }
             else
             {
                 return(String.Empty);
             }
         }
         else
         {
             return(String.Empty);
         }
     }
     catch (Exception ex)
     {
         return(String.Empty);
     }
 }