public void run( Integer executionCourseID, ExecutionCourse executionCourseTo, ExecutionCourse executionCourseFrom, Shift shift) { if (executionCourseTo != null && executionCourseFrom != null) { if (shift == null) { executionCourseTo.copyLessonPlanningsFrom(executionCourseFrom); } else { executionCourseTo.createLessonPlanningsUsingSummariesFrom(shift); } } }