class DayOfWeekConfig extends FilterConfig {

   @Override
   public Condition generate(Map<String, Object> values) {
      Preconditions.checkState(days != null, "must specify days");
      Preconditions.checkState(getCondition() != null, "must specify delegate");
      Set<DayOfWeek> days = FunctionFactory.toSetOfDays(this.days.toTemplate(), values);
      return new DayOfWeekFilter(generateDelegate(values), days);
   }

}