Summary summary = (Summary) iter.next();
ISummary summary = (ISummary) iter.next();
    public List readByShift(final Integer executionCourseID, final Integer shiftID) throws ExcepcaoPersistencia {                List summaries = readByExecutionCourseShifts(executionCourseID);                Iterator iter = summaries.iterator();        ArrayList summariesAux = new ArrayList();                while(iter.hasNext()){            Summary summary = (Summary) iter.next();            if(summary.getKeyShift() == shiftID)                summariesAux.add(summary);        }                       return summariesAux;    }