private List<QueueTask> createQueueTasks(IDatesMapper datesMapper, Set<LimitingResourceQueueElement> list) {

        List<QueueTask> result = new ArrayList<>();

        org.zkoss.ganttz.util.Interval interval = null;

        if ( timeTracker.getFilter() != null ) {
            timeTracker.getFilter().resetInterval();
            interval = timeTracker.getFilter().getCurrentPaginationInterval();
        }

        for (LimitingResourceQueueElement each : list) {

            if ( interval != null ) {

                if ( each.getEndDate().toDateTimeAtStartOfDay().isAfter(interval.getStart().toDateTimeAtStartOfDay()) &&
                        each.getStartDate().toDateTimeAtStartOfDay()
                                .isBefore(interval.getFinish().toDateTimeAtStartOfDay()) ) {

                    result.add(createQueueTask(datesMapper, each));
                }

            } else {
                result.add(createQueueTask(datesMapper, each));
            }
        }

        return result;
    }
 public ZoomLevel getInitialZoomLevel() {
   Interval interval = getViewInterval();
   return ZoomLevel.getDefaultZoomByDates(
       new LocalDate(interval.getStart()), new LocalDate(interval.getFinish()));
 }