public object SetValue(ComponentFile file, string key, object value) { string failureMessage; var suceeded = file.SetValue(key, value, out failureMessage); if (!string.IsNullOrEmpty(failureMessage)) { throw new ApplicationException(failureMessage); } return(suceeded); }