for (Leave leave: leaveList) { System.out.println("leave " + leave.getDate().toString()); if (leave.getJustificationMotive().getJustificationType() != JustificationType.BALANCE) {  pointList.addAll(leave.toTimePoints((AttributeType)attributesIt.next())); } }
    public void plotListInTimeline(List<AssiduousnessRecord> clockingList,            Iterator<AttributeType> attributesIt, YearMonthDay day) {        List<TimePoint> pointList = new ArrayList<TimePoint>();        Iterator<AssiduousnessRecord> clockingIt = clockingList.iterator();        while (clockingIt.hasNext()) {            AssiduousnessRecord clockIn = clockingIt.next();            if (clockingIt.hasNext()) {                AssiduousnessRecord clockOut = clockingIt.next();                AttributeType attribute = attributesIt.next();                TimeOfDay timeIn = new TimeOfDay(clockIn.getDate().toTimeOfDay().getHourOfDay(), clockIn                        .getDate().toTimeOfDay().getMinuteOfHour(), 0);                TimeOfDay timeOut = new TimeOfDay(clockOut.getDate().toTimeOfDay().getHourOfDay(),                        clockOut.getDate().toTimeOfDay().getMinuteOfHour(), 0);                TimePoint timePointIn = new TimePoint(timeIn, clockIn.getDate().toYearMonthDay().isAfter(day), attribute);                TimePoint timePointOut = new TimePoint(timeOut, clockOut.getDate().toYearMonthDay().isAfter(day),                        attribute);                pointList.add(timePointIn);                pointList.add(timePointOut);            } else {                AttributeType attribute = attributesIt.next();                TimeOfDay timeIn = new TimeOfDay(clockIn.getDate().toTimeOfDay().getHourOfDay(), clockIn                        .getDate().toTimeOfDay().getMinuteOfHour(), 0);                TimePoint timePointIn = new TimePoint(timeIn, clockIn.getDate().toYearMonthDay().isAfter(day), attribute);                pointList.add(timePointIn);            }        }        plotList(pointList);    }