if (pointList.size() > 2) { pointList = normalizeList(pointList); }
    public Duration calculateDurationPointList(List<TimePoint> pointList) {        Duration totalDuration = Duration.ZERO;        if (pointList.size() > 2) {            pointList = normalizeList(pointList);        }        Iterator<TimePoint> pointListIt = pointList.iterator();        while (pointListIt.hasNext()) {            TimePoint point = pointListIt.next();            if (pointListIt.hasNext()) {                TimePoint point2 = pointListIt.next();                System.out.println("calcular a duracao entre " + point + " e " + point2);                totalDuration = totalDuration.plus(new TimeInterval(point.getTime(), point2.getTime(),                        point2.isNextDay()).getDuration());            }        }        System.out.println("total duration: " + totalDuration.toPeriod().toString());        return totalDuration;    }