InfoSeminary infoSeminary = InfoSeminary.newInfoFromDomain((ISeminary) iterator.next());
InfoSeminaryWithEquivalencies infoSeminary = InfoSeminaryWithEquivalencies.newInfoFromDomain((ISeminary) iterator.next());
    private List getSeminaries(Boolean inEnrollmentPeriod, List seminaries) {        List result = new ArrayList();        for (Iterator iterator = seminaries.iterator(); iterator.hasNext();) {            InfoSeminary infoSeminary = InfoSeminary.newInfoFromDomain((ISeminary) iterator.next());            Calendar now = new GregorianCalendar();            Calendar endDate = new GregorianCalendar();            Calendar beginDate = new GregorianCalendar();            endDate.setTimeInMillis(infoSeminary.getEnrollmentEndTime().getTimeInMillis()                    + infoSeminary.getEnrollmentEndDate().getTimeInMillis());            beginDate.setTimeInMillis(infoSeminary.getEnrollmentBeginTime().getTimeInMillis()                    + infoSeminary.getEnrollmentBeginDate().getTimeInMillis());            if ((!inEnrollmentPeriod.booleanValue()) || (endDate.after(now) && beginDate.before(now)))                result.add(infoSeminary);        }        return result;    }