Shift shift = (Shift) iter.next();
IShift shift = (IShift) iter.next();
    public List readByExecutionCourseShifts(final Integer executionCourseID) throws ExcepcaoPersistencia {        final IExecutionCourse executionCourse = (IExecutionCourse) readByOID(ExecutionCourse.class, executionCourseID);                ArrayList summaries = new ArrayList();                List shifts = executionCourse.getAssociatedShifts();        Iterator iter = shifts.iterator();                while(iter.hasNext()){            Shift shift = (Shift) iter.next();            summaries.addAll(shift.getAssociatedSummaries());                     }             return summaries;    }