code: private boolean matchesDay(DateTime currentTime, TimeRestrictedAccess filter) {
          Integer dayStart = filter.getDayStart();
          Integer dayEnd = filter.getDayEnd();
          int dayNow = currentTime.getDayOfWeek();
          if (dayStart >= dayEnd) {
              return dayNow >= dayStart && dayNow <= dayEnd;
          } else {
              return dayNow <= dayEnd && dayNow >= dayStart;
          }
      }
docs: Returns true if the given time matches the day-of-week restrictions specified
  by the included filter/rule.
  @param currentTime
  @param filter