if (enrolmentBeginDay.getTime() != null) {
if (enrolmentBeginDay != null) {
    public void setEnrolmentBeginDay(Calendar enrolmentBeginDay) {        if (enrolmentBeginDay.getTime() != null) {            this.setEnrolmentBeginDayDate(enrolmentBeginDay.getTime());        } else {            this.setEnrolmentBeginDayDate(null);        }    }