timePointList.add(new TimePoint(getDate().toTimeOfDay(), attribute)); timePointList.add(new TimePoint((getDate().plus(getDuration())).toTimeOfDay(), attribute));
Attributes attributes = new Attributes(); attributes.addAttribute(attribute); attributes.addAttribute(AttributeType.JUSTIFICATION); timePointList.add(new TimePoint(getDate().toTimeOfDay(), attributes)); timePointList.add(new TimePoint((getDate().plus(getDuration())).toTimeOfDay(), attributes));
    public List<TimePoint> toTimePoints(AttributeType attribute) {        List<TimePoint> timePointList = new ArrayList<TimePoint>();        timePointList.add(new TimePoint(getDate().toTimeOfDay(), attribute));        timePointList.add(new TimePoint((getDate().plus(getDuration())).toTimeOfDay(), attribute));        return timePointList;    }