public class ExecutionCoursesToImportLessonPlanningsProvider implements DataProvider {
@Override
public Object provide(Object source, Object currentValue) {
ImportContentBean bean = (ImportContentBean) source;
ExecutionSemester executionSemester = bean.getExecutionPeriod();
CurricularYear curricularYear = bean.getCurricularYear();
DegreeCurricularPlan degreeCurricularPlan = bean.getExecutionDegree().getDegreeCurricularPlan();
if (degreeCurricularPlan != null && executionSemester != null && curricularYear != null) {
List<ExecutionCourse> executionCourses =
degreeCurricularPlan.getExecutionCoursesByExecutionPeriodAndSemesterAndYear(executionSemester,
curricularYear.getYear(), executionSemester.getSemester());
Collections.sort(executionCourses, ExecutionCourse.EXECUTION_COURSE_NAME_COMPARATOR);