ExecutionPeriod element = (ExecutionPeriod) iter.next();
IExecutionPeriod element = (IExecutionPeriod) iter.next();
    public IExecutionPeriod readActualExecutionPeriod() throws ExcepcaoPersistencia {        Collection executionPeriods = readAll(ExecutionPeriod.class);           for (Iterator iter = executionPeriods.iterator(); iter.hasNext();) {            ExecutionPeriod element = (ExecutionPeriod) iter.next();            if(element.getState().equals(PeriodState.CURRENT))                return element;        }                                      return null;    }