.getAutonomousWorkHours(), courseLoad.getEctsCredits(), courseLoad.getOrder());
.getAutonomousWorkHours(), courseLoad.getEctsCredits(), courseLoad.getOrder(), curricularPeriodType);
    public void run(Integer competenceCourseID, RegimeType regimeType, List<CourseLoad> courseLoads)         throws ExcepcaoPersistencia, FenixServiceException {        final ISuportePersistente persistentSupport = PersistenceSupportFactory.getDefaultPersistenceSupport();        final CompetenceCourse competenceCourse = (CompetenceCourse) persistentSupport                .getIPersistentCompetenceCourse().readByOID(CompetenceCourse.class, competenceCourseID);        if (competenceCourse == null) {            throw new FenixServiceException("error.noCompetenceCourse");        }        competenceCourse.setRegime(regimeType);        for (final CourseLoad courseLoad : courseLoads) {            if (courseLoad.getAction().equals("create")) {               competenceCourse.addCompetenceCourseLoad(courseLoad.getTheoreticalHours(), courseLoad                        .getProblemsHours(), courseLoad.getLaboratorialHours(), courseLoad                        .getSeminaryHours(), courseLoad.getFieldWorkHours(), courseLoad                        .getTrainingPeriodHours(), courseLoad.getTutorialOrientationHours(), courseLoad                        .getAutonomousWorkHours(), courseLoad.getEctsCredits(), courseLoad.getOrder());            } else {                final CompetenceCourseLoad competenceCourseLoad = (CompetenceCourseLoad) persistentSupport                        .getIPersistentObject().readByOID(CompetenceCourseLoad.class,                                courseLoad.getIdentification());                if (competenceCourseLoad != null && courseLoad.getAction().equals("edit")) {                    competenceCourseLoad.edit(courseLoad.getTheoreticalHours(), courseLoad                            .getProblemsHours(), courseLoad.getLaboratorialHours(), courseLoad                            .getSeminaryHours(), courseLoad.getFieldWorkHours(), courseLoad                            .getTrainingPeriodHours(), courseLoad.getTutorialOrientationHours(), courseLoad                            .getAutonomousWorkHours(), courseLoad.getEctsCredits(), Integer.valueOf(courseLoad.getOrder()));                } else if (competenceCourseLoad != null && courseLoad.getAction().equals("delete")) {                    competenceCourseLoad.delete();                }            }        }    }   