YearMonthDay limitDate = examDate.minusDays(2);    if (limitDate.isAfter(currentDate)) {
if (examDate.isAfter(currentDate)) {
	public void setActive(Boolean bool) {		YearMonthDay examDate = this.getWrittenEvaluation()				.getDayDateYearMonthDay();		YearMonthDay currentDate = new YearMonthDay();		YearMonthDay limitDate = examDate.minusDays(2); // You can deactive a		// convoke until 48h		// before the exam.		if (limitDate.isAfter(currentDate)) {			super.setActive(bool);		} else {			throw new DomainException("vigilancy.error.cannotChangeActive");		}	}