if (point.hasAttributes(fixedPeriodAttribute, DomainConstants.WORKED_ATTRIBUTES) || point.hasAttributes(fixedPeriodAttribute, AttributeType.BALANCE)) {
if (point.hasAttributes(fixedPeriodAttribute, DomainConstants.WORKED_ATTRIBUTES)) {
    public Duration calculateFixedPeriod(AttributeType fixedPeriodAttribute) {        List<TimePoint> pointList = new ArrayList<TimePoint>();        for (TimePoint point : getTimePoints()) {            // checks if the point is a WORKED in the fixed period or is a BALANCE in the fixed period.            if (point.hasAttributes(fixedPeriodAttribute, DomainConstants.WORKED_ATTRIBUTES)                    || point.hasAttributes(fixedPeriodAttribute, AttributeType.BALANCE)) {                pointList.add(point);            }        }        return this.calculateDurationPointList(pointList);    }