if(summary.getSummaryType() != null){ if(summary.getSummaryType().equals(summaryType)) summariesAux.add(summary); }
if(summary.getShift().getTipo().equals(summaryType.getTipo())) summariesAux.add(summary);
    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.getSummaryType() != null){	            if(summary.getSummaryType().equals(summaryType))	                summariesAux.add(summary);            }        }                       return summariesAux;    }