TRACEOUTCOME outcomeEnum = null;
if (outcome.atomValue().equals("ok")) {
outcomeEnum = TRACEOUTCOME.TRACE_OK;
} else if (outcome.atomValue().equals("failed_but")) {
outcomeEnum = TRACEOUTCOME.TRACE_DIFFERENTOUTPUT;
} else if (outcome.atomValue().equals("timeout")) {
outcomeEnum = TRACEOUTCOME.TRACE_FAIL;
} else if (outcome.atomValue().equals("failed")) {
outcomeEnum = TRACEOUTCOME.TRACE_FAIL;
} else {
throw new IllegalArgumentException("unknown Erlang response " + outcome);