watchTimeExceptionData = addWatchTimeExceptionData(formData);
if (formData.has("useRestApi")) {
useRestApi = true;
JSONObject restApi = formData.getJSONObject("useRestApi");
gerritHttpUserName = restApi.optString("gerritHttpUserName", "");
gerritHttpPassword = Secret.fromString(restApi.optString("gerritHttpPassword", ""));
restCodeReview = restApi.optBoolean("restCodeReview", true);
restVerified = restApi.optBoolean("restVerified", true);
} else {
useRestApi = false;