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