private void runCreateCurricularCourse() throws FenixActionException, FenixServiceException {
    final CurricularCourseType curricularCourseType =
        CurricularCourseType.valueOf(getSelectedCurricularCourseType());
    if (curricularCourseType.equals(CurricularCourseType.NORMAL_COURSE)) {

      checkCompetenceCourse();
      CreateCurricularCourse.run(
          new CreateCurricularCourse.CreateCurricularCourseArgs(
              getWeight(),
              getPrerequisites(),
              getPrerequisitesEn(),
              getCompetenceCourseID(),
              getCourseGroupID(),
              getCurricularYearID(),
              getCurricularSemesterID(),
              getDegreeCurricularPlanID(),
              getBeginExecutionPeriodID(),
              getFinalEndExecutionPeriodID()));

    } else if (curricularCourseType.equals(CurricularCourseType.OPTIONAL_COURSE)) {

      checkCurricularCourseNameAndNameEn();
      CreateCurricularCourse.run(
          new CreateCurricularCourse.CreateOptionalCurricularCourseArgs(
              getDegreeCurricularPlanID(),
              getCourseGroupID(),
              getName(),
              getNameEn(),
              getCurricularYearID(),
              getCurricularSemesterID(),
              getBeginExecutionPeriodID(),
              getFinalEndExecutionPeriodID()));
    }
  }
 private void runEditCurricularCourse() throws FenixActionException, FenixServiceException {
   final CurricularCourseType curricularCourseType =
       CurricularCourseType.valueOf(getSelectedCurricularCourseType());
   if (curricularCourseType.equals(CurricularCourseType.NORMAL_COURSE)) {
     checkCompetenceCourse();
     EditCurricularCourse.run(
         getCurricularCourse(),
         getWeight(),
         getPrerequisites(),
         getPrerequisitesEn(),
         getCompetenceCourse());
   } else if (curricularCourseType.equals(CurricularCourseType.OPTIONAL_COURSE)) {
     EditCurricularCourse.run(getCurricularCourse(), getName(), getNameEn());
   }
 }