try { ISuportePersistente sp = SuportePersistenteOJB.getInstance();   IDisciplinaExecucao executionCourse = Cloner.copyInfoExecutionCourse2ExecutionCourse(infoExecutionCourse);  shiftList = sp.getITurnoPersistente().readByExecutionCourse(executionCourse);  Iterator iterator = shiftList.iterator(); infoShiftList = new ArrayList(); while(iterator.hasNext()) { ITurno shift = (ITurno)iterator.next(); infoShiftList.add(Cloner.copyIShift2InfoShift(shift)); }  } catch (ExcepcaoPersistencia ex) { ex.printStackTrace(); } return infoShiftList; }
IDisciplinaExecucao executionCourse = Cloner.copyInfoExecutionCourse2ExecutionCourse(infoExecutionCourse);  infoShiftList = sp.getITurnoPersistente().readByExecutionCourse(executionCourse); Iterator itShiftList = infoShiftList.iterator();  while (itShiftList.hasNext()) { ITurno shift = (ITurno) itShiftList.next(); InfoShift infoTurno = Cloner.copyIShift2InfoShift(shift);  List lessons = shift.getAssociatedLessons(); Iterator itLessons = lessons.iterator();  List infoLessons = new ArrayList(); InfoLesson infoLesson;   while (itLessons.hasNext()) { infoLesson = Cloner.copyILesson2InfoLesson((IAula) itLessons.next()); infoLessons.add(infoLesson); }  infoTurno.setInfoLessons(infoLessons); infoShiftAndLessons.add(infoTurno);  } } catch (ExcepcaoPersistencia ex) { throw new FenixServiceException(ex); } return infoShiftAndLessons;  }
  public List run(InfoExecutionCourse infoExecutionCourse) {    List shiftList = null;    List infoShiftList = null;    try {      ISuportePersistente sp = SuportePersistenteOJB.getInstance();                  IDisciplinaExecucao executionCourse = Cloner.copyInfoExecutionCourse2ExecutionCourse(infoExecutionCourse);            shiftList = sp.getITurnoPersistente().readByExecutionCourse(executionCourse);            Iterator iterator = shiftList.iterator();      infoShiftList = new ArrayList();      while(iterator.hasNext()) {      	ITurno shift = (ITurno)iterator.next();        infoShiftList.add(Cloner.copyIShift2InfoShift(shift));        }      															      } catch (ExcepcaoPersistencia ex) {      ex.printStackTrace();    }    return infoShiftList;  }