// update the env script file so it includes the new settings.
// note that we require the request to contain ALL settings, not a subset; any settings
// missing in the request config that currently exist in the script will be removed from the script,
// which would be bad - but that should never occur unless something bad happens in the UI
EnvironmentScriptFileUpdate updater = EnvironmentScriptFileUpdate.create(environmentFile.getAbsolutePath());
updater.update(newSettings, true);
request.setStatus(ConfigurationUpdateStatus.SUCCESS);
} catch (Exception e) {
request.setErrorMessage(new ExceptionPackage(Severity.Severe, e).toString());
}