List<Seminary> seminaries = rootDomainObject.getSeminarys(); for (Seminary seminary : seminaries) { Calendar now = new GregorianCalendar();  Calendar beginDate = new GregorianCalendar(); beginDate.setTimeInMillis(seminary.getEnrollmentBeginTime().getTimeInMillis() + seminary.getEnrollmentBeginDate().getTimeInMillis());  Calendar endDate = new GregorianCalendar(); endDate.setTimeInMillis(seminary.getEnrollmentEndTime().getTimeInMillis() + seminary.getEnrollmentEndDate().getTimeInMillis());  if (!inEnrollmentPeriod || (endDate.after(now) && beginDate.before(now))) result.add(InfoSeminaryWithEquivalencies.newInfoFromDomain(seminary));
List<Seminary> seminaries = rootDomainObject.getSeminarys(); for (Seminary seminary : seminaries) {  if (!inEnrollmentPeriod) { result.add(InfoSeminaryWithEquivalencies.newInfoFromDomain(seminary)); } else { final DateTime now = new DateTime(); if (!now.isBefore(seminary.getEnrollmentBeginYearMonthDay().toDateMidnight()) && !now.isAfter(seminary.getEnrollmentEndYearMonthDay().toDateMidnight())) { result.add(InfoSeminaryWithEquivalencies.newInfoFromDomain(seminary));
	public List run(Boolean inEnrollmentPeriod) throws BDException, ExcepcaoPersistencia {		List<InfoSeminary> result = new LinkedList<InfoSeminary>();		List<Seminary> seminaries = rootDomainObject.getSeminarys();		for (Seminary seminary : seminaries) {			Calendar now = new GregorianCalendar();			            Calendar beginDate = new GregorianCalendar();            beginDate.setTimeInMillis(seminary.getEnrollmentBeginTime().getTimeInMillis()                    + seminary.getEnrollmentBeginDate().getTimeInMillis());			            Calendar endDate = new GregorianCalendar();            endDate.setTimeInMillis(seminary.getEnrollmentEndTime().getTimeInMillis()					+ seminary.getEnrollmentEndDate().getTimeInMillis());						if (!inEnrollmentPeriod || (endDate.after(now) && beginDate.before(now)))                result.add(InfoSeminaryWithEquivalencies.newInfoFromDomain(seminary));		}		return result;	}