public static LogicObject dowKeywordToInstance(Keyword dow) {
    if (dow == Timepoint.KWD_MONDAY) {
      return (((LogicObject)(Timepoint.SGT_TIMEPOINT_KB_MONDAY.surrogateValue)));
    }
    else if (dow == Timepoint.KWD_TUESDAY) {
      return (((LogicObject)(Timepoint.SGT_TIMEPOINT_KB_TUESDAY.surrogateValue)));
    }
    else if (dow == Timepoint.KWD_WEDNESDAY) {
      return (((LogicObject)(Timepoint.SGT_TIMEPOINT_KB_WEDNESDAY.surrogateValue)));
    }
    else if (dow == Timepoint.KWD_THURSDAY) {
      return (((LogicObject)(Timepoint.SGT_TIMEPOINT_KB_THURSDAY.surrogateValue)));
    }
    else if (dow == Timepoint.KWD_FRIDAY) {
      return (((LogicObject)(Timepoint.SGT_TIMEPOINT_KB_FRIDAY.surrogateValue)));
    }
    else if (dow == Timepoint.KWD_SATURDAY) {
      return (((LogicObject)(Timepoint.SGT_TIMEPOINT_KB_SATURDAY.surrogateValue)));
    }
    else if (dow == Timepoint.KWD_SUNDAY) {
      return (((LogicObject)(Timepoint.SGT_TIMEPOINT_KB_SUNDAY.surrogateValue)));
    }
    else {
      { OutputStringStream stream000 = OutputStringStream.newOutputStringStream();

        stream000.nativeStream.print("`" + dow + "' is not a valid case option");
        throw ((StellaException)(StellaException.newStellaException(stream000.theStringReader()).fillInStackTrace()));
      }
    }
  }