public class ExecutionCoursesProvider extends AbstractDomainObjectProvider {
@Override
public Object provide(Object arg0, Object arg1) {
ExecutionCourseBean bean = (ExecutionCourseBean) arg0;
ExecutionSemester executionSemester = bean.getExecutionSemester();
HashSet<ExecutionCourse> result = new HashSet<ExecutionCourse>();
if (executionSemester != null) {
for (ExecutionCourse executionCourse : executionSemester.getAssociatedExecutionCoursesSet()) {
for (ExecutionDegree degree : executionCourse.getExecutionDegrees()) {
if (AcademicPredicates.MANAGE_EXECUTION_COURSES.evaluate(degree.getDegree())) {