public JobEntryMode getModeAsEnum() {
   try {
     return JobEntryMode.valueOf(getMode());
   } catch (Exception ex) {
     // Not a valid ui mode, return the default
     return JobEntryMode.QUICK_SETUP;
   }
 }
 /**
  * Sets the mode based on the enum value
  *
  * @param mode
  */
 public void setMode(JobEntryMode mode) {
   setMode(mode.name());
 }