ExecutionPeriod element = (ExecutionPeriod) iter.next();
IExecutionPeriod element = (IExecutionPeriod) iter.next();
    public List readNotClosedPublicExecutionPeriodsByExecutionYears(Integer executionYearID) throws ExcepcaoPersistencia {        Collection executionPeriods = readAll(ExecutionPeriod.class);           List executionPeriodsAux = new ArrayList();                for (Iterator iter = executionPeriods.iterator(); iter.hasNext();) {            ExecutionPeriod element = (ExecutionPeriod) iter.next();            if((element.getExecutionYear().getIdInternal() == executionYearID) &&                     (!element.getState().equals(PeriodState.CLOSED)) &&                    (!element.getState().equals(PeriodState.NOT_OPEN)) &&                    (element.getSemester().compareTo(new Integer(0)) > 0))                executionPeriodsAux.add(element);        }             return executionPeriodsAux;    }