for (Leave leave : leaveList) { if (leave.getJustificationMotive().getJustificationType() != JustificationType.BALANCE) { pointList.addAll(leave.toTimePoints((AttributeType) attributesIt.next())); } }
    public void plotListInTimeline(List<AssiduousnessRecord> clockingList, List<Leave> leaveList,            Iterator<AttributeType> attributesIt, YearMonthDay day) {        List<TimePoint> pointList = new ArrayList<TimePoint>();        for (Leave leave : leaveList) {            if (leave.getJustificationMotive().getJustificationType() != JustificationType.BALANCE) {                pointList.addAll(leave.toTimePoints((AttributeType) attributesIt.next()));            }        }        Iterator<AssiduousnessRecord> clockingIt = clockingList.iterator();        while (clockingIt.hasNext()) {            final AssiduousnessRecord clockIn = clockingIt.next();            final AttributeType attribute = attributesIt.next();            final TimePoint timePointIn = constructTimePoint(clockIn, day, attribute);            pointList.add(timePointIn);            if (clockingIt.hasNext()) {                final AssiduousnessRecord clockOut = clockingIt.next();                final TimePoint timePointOut = constructTimePoint(clockOut, day, attribute);                pointList.add(timePointOut);            }        }        plotList(pointList);    }