Summary summary = (Summary) iter.next();
ISummary summary = (ISummary) iter.next();
    public List readByExecutionCourseShiftsAndTypeLesson(final Integer executionCourseID, TipoAula summaryType) throws ExcepcaoPersistencia {                List summaries = readByExecutionCourseShifts(executionCourseID);        Iterator iter = summaries.iterator();        ArrayList summariesAux = new ArrayList();                while(iter.hasNext()){            Summary summary = (Summary) iter.next();            if(summary.getShift().getTipo().equals(summaryType.getTipo()))                summariesAux.add(summary);        }                       return summariesAux;    }