class TimeOfDayFilter extends DurationFilter {

   @Override
   protected Date getActivationTime(ConditionContext context) {
      TimeOfDay activationTime = startTime;
      if(activationTime == null) {
         activationTime = MIDNIGHT;
      }
      return activationTime.next(context.getLocalTime()).getTime();
   }

   public  TimeOfDayFilter(Condition delegate, TimeRange timeRange);
   public  TimeOfDayFilter(Condition delegate, @Nullable TimeOfDay startTime, @Nullable TimeOfDay endTime);

}