Choice (int exitCode) { if (exitCode == OK_EXIT_CODE) return SMART; if (exitCode == FORCE_EXIT_CODE) return FORCE; if (exitCode == CANCEL_EXIT_CODE) return CANCEL; LOG.error("Unexpected exit code: " + exitCode); return CANCEL; }