if (exam.getDay().getTimeInMillis()<examEnrollment.getEndDate().getTimeInMillis()) {
if (exam.getDay()==null ||exam.getDay().getTimeInMillis()<examEnrollment.getEndDate().getTimeInMillis()) {
	public Boolean run(		Integer disciplinaExecucaoIdInternal,		Integer examIdInternal,		Calendar newBeginDate,		Calendar newEndDate)		throws FenixServiceException {		try {			ISuportePersistente sp = SuportePersistenteOJB.getInstance();			IPersistentExamEnrollment persistentExamEnrollment =				sp.getIPersistentExamEnrollment();			IExamEnrollment examEnrollment = new ExamEnrollment();			IPersistentExam persistentExam = sp.getIPersistentExam();			IExam exam = new Exam();			exam.setIdInternal(examIdInternal);			exam = (IExam) persistentExam.readByOId(exam);						if (exam != null){							examEnrollment.setExam(exam);}			else{							throw new InvalidArgumentsServiceException();}			examEnrollment.setBeginDate(newBeginDate);			examEnrollment.setEndDate(newEndDate);					if (exam.getDay().getTimeInMillis()<examEnrollment.getEndDate().getTimeInMillis()) {				throw new InvalidTimeIntervalServiceException();			}					persistentExamEnrollment.lockWrite(examEnrollment);		} catch (ExcepcaoPersistencia e) {			throw new FenixServiceException(e);		}		return new Boolean(true);	}