if (!this.getStart().after(endDate) && (this.getEnd() == null || !this.getEnd().before(beginDate))) { return true; } return false;
return (!this.getStart().after(endDate) && (this.getEnd() == null || !this.getEnd().before(beginDate)));
    public boolean belongsToPeriod(Date beginDate, Date endDate) {        if (!this.getStart().after(endDate)                && (this.getEnd() == null || !this.getEnd().before(beginDate))) {            return true;        }        return false;    }