IExecutionDegree storedExecutionDegree = executionDegreeDAO .readByDegreeCurricularPlanIDAndExecutionYear(degreeCurricularPlanID, executionYear .getYear());
IExecutionDegree storedExecutionDegree = ps.getIPersistentExecutionDegree() .readByDegreeCurricularPlanIDAndExecutionYear(degreeCurricularPlanID, executionYear.getYear());
    public void run(final Integer[] degreeCurricularPlansIDs, final Integer executionYearID,            final String campusName, final Boolean temporaryExamMap,            final Calendar lessonSeason1BeginDate, final Calendar lessonSeason1EndDate,            final Calendar lessonSeason2BeginDate, final Calendar lessonSeason2EndDate,            final Calendar examsSeason1BeginDate, final Calendar examsSeason1EndDate,            final Calendar examsSeason2BeginDate, final Calendar examsSeason2EndDate)            throws ExcepcaoPersistencia {        ps = PersistenceSupportFactory.getDefaultPersistenceSupport();        periodDAO = ps.getIPersistentPeriod();        executionDegreeDAO = ps.getIPersistentExecutionDegree();        final IExecutionYear executionYear = (IExecutionYear) ps.getIPersistentExecutionYear()                .readByOID(ExecutionYear.class, executionYearID);        final ICampus campus = ps.getIPersistentCampus().readByName(campusName);        final IPeriod lessonSeason1 = createPeriod(lessonSeason1BeginDate, lessonSeason1EndDate);        final IPeriod lessonSeason2 = createPeriod(lessonSeason2BeginDate, lessonSeason2EndDate);        final IPeriod examsSeason1 = createPeriod(examsSeason1BeginDate, examsSeason1EndDate);        final IPeriod examsSeason2 = createPeriod(examsSeason2BeginDate, examsSeason2EndDate);        for (Integer degreeCurricularPlanID : degreeCurricularPlansIDs) {            final IDegreeCurricularPlan degreeCurricularPlan = (IDegreeCurricularPlan) ps                    .getIPersistentDegreeCurricularPlan().readByOID(DegreeCurricularPlan.class,                            degreeCurricularPlanID);            IExecutionDegree storedExecutionDegree = executionDegreeDAO                    .readByDegreeCurricularPlanIDAndExecutionYear(degreeCurricularPlanID, executionYear                            .getYear());            if (storedExecutionDegree != null) {                continue;            }            createExecutionDegree(executionYear, campus, degreeCurricularPlan, temporaryExamMap,                    examsSeason1, examsSeason2, lessonSeason1, lessonSeason2);        }    }