if (attribute != null) { setPointAttributes(new Attributes(attribute)); } else { setPointAttributes(new Attributes()); }
setPointAttributes(pointAttributes);
    public TimePoint(TimeOfDay timePoint, boolean nextDay, AttributeType attribute) {        TimeOfDay timeIn = new TimeOfDay(timePoint.getHourOfDay(), timePoint.getMinuteOfHour(), 0);        setTime(timeIn);        if (attribute != null) {            setPointAttributes(new Attributes(attribute));        } else {            setPointAttributes(new Attributes());        }        setIntervalAttributes(new Attributes());        setNextDay(nextDay);    }