public virtual void SaveInputConfiguration(InputConfiguration c) { var path = AppConfigProvider.AppConfig.ConfigFolder; if (!FileSystemUtils.DirectoryExists(path)) { throw new Exception("Directory does not exist"); } FileSystemUtils.SaveObjectToDisk(c, Path.Combine(path, c.FileName)); }