if (abandonChange) {
final AbandonChange abandonChange = abandonChangeProvider.get();
abandonChange.setChangeId(patchSetId.getParentKey());
abandonChange.setMessage(changeComment);
final ReviewResult result = abandonChange.call();
handleReviewResultErrors(result);
} else if (restoreChange) {
final RestoreChange restoreChange = restoreChangeProvider.get();
restoreChange.setChangeId(patchSetId.getParentKey());
restoreChange.setMessage(changeComment);