if(summary.getSummaryType().equals(summaryType.getTipo())) summariesAux.add(summary);
if(summary.getSummaryType() != null){ if(summary.getSummaryType().equals(summaryType)) summariesAux.add(summary); }
    public List readByExecutionCourseAndType(final Integer executionCourseID, TipoAula summaryType)    throws ExcepcaoPersistencia {               List summaries = readByExecutionCourse(executionCourseID);        Iterator iter = summaries.iterator();        ArrayList summariesAux = new ArrayList();                       while(iter.hasNext()){            Summary summary = (Summary) iter.next();            if(summary.getSummaryType().equals(summaryType.getTipo()))                summariesAux.add(summary);        }                return summariesAux;    }