public CaseExecutionState getPreviousState() {
   return CaseExecutionState.CASE_EXECUTION_STATES.get(getPrevious());
 }
 public CaseExecutionState getCurrentState() {
   return CaseExecutionState.CASE_EXECUTION_STATES.get(getState());
 }