public class DestinationExecutionCoursesProvider implements DataProvider {
@Override
public Object provide(Object source, Object currentValue) {
final DegreesMergeBean degreeBean = (DegreesMergeBean) source;
Degree destinationDegree = degreeBean.getDestinationDegree();
List<ExecutionCourse> destinationExecutionCourses =
destinationDegree.getExecutionCourses(degreeBean.getAcademicInterval());
Collections.sort(destinationExecutionCourses, DomainObjectUtil.COMPARATOR_BY_ID);
removeDuplicates(destinationExecutionCourses);