IExecutionYear executionYear = (IExecutionYear) readByOID(ExecutionYear.class, executionYearOID);  List<IExecutionDegree> executionDegrees = executionYear.getExecutionDegrees();
List<IExecutionYear> executionYears = (List<IExecutionYear>) readAll(ExecutionYear.class);
    public List readByExecutionYearAndDegreeType(Integer executionYearOID, DegreeType degreeType)            throws ExcepcaoPersistencia {        IExecutionYear executionYear = (IExecutionYear) readByOID(ExecutionYear.class, executionYearOID);        List<IExecutionDegree> executionDegrees = executionYear.getExecutionDegrees();        List<IExecutionDegree> result = new ArrayList();        for (IExecutionDegree executionDegree : executionDegrees) {            if (executionDegree.getDegreeCurricularPlan().getDegree().getTipoCurso().equals(degreeType)) {                result.add(executionDegree);            }        }        return result;    }