class TimeOfDayConfig implements ConditionConfig {

   @Override
   public Condition generate(Map<String, Object> values) {
      Preconditions.checkState(timeOfDay != null, "must specify time");
      TimeOfDay timeOfDay = FunctionFactory.toTimeOfDay(this.timeOfDay.toTemplate(), values);
      return new TimeOfDayTrigger(timeOfDay);
   }

}