public ArrayList getCourseList() { ArrayList courslisttmp = null; try { FormationDto newfdto = MainFrame.myDaybyday.getFormation(new FormationBusinessPK(name, year)); SectionDto newdto = MainFrame.myDaybyday.getSection( new SectionBusinessPK("GENERALE", newfdto.getFormationId())); if (sectionDto.getVersion().intValue() != newdto.getVersion().intValue() || formationdto.getVersion().intValue() != newfdto.getVersion().intValue()) { courslist = new ArrayList(); sectionDto = newdto; formationdto = newfdto; courslist = new ArrayList(); courslisttmp = MainFrame.myDaybyday.getCoursesOfSection( new SectionBusinessPK("GENERALE", formationdto.getFormationId())); for (int i = 0; i < courslisttmp.size(); ++i) courslist.add(new Course((CourseDto) courslisttmp.get(i))); } } catch (RemoteException e2) { } catch (EntityNotFoundException e2) { // TODO Auto-generated catch block e2.printStackTrace(); } return courslist; }