public Boolean isActive(Date date) {
Calendar calendar = Calendar.getInstance();
calendar.setTime(date);
CalendarDateComparator calendarDateComparator = new CalendarDateComparator();
Boolean result = Boolean.FALSE;
if (calendarDateComparator.compare(getBeginDate(), calendar) <= 0) {
if (getEndDate() == null || calendarDateComparator.compare(getEndDate(), calendar) >= 0) {
result = Boolean.TRUE;
}
}
return result;