public List run(InfoExecutionCourse iDE, TipoAula type) { List shifts = new ArrayList();
public List run(InfoExecutionCourse infoExecutionCourse, TipoAula tipoAula) throws ExcepcaoPersistencia { final ISuportePersistente persistentSupport = SuportePersistenteOJB.getInstance(); final IPersistentExecutionCourse persistentExecutionCourse = persistentSupport.getIPersistentExecutionCourse(); final ITurnoPersistente persistentShift = persistentSupport.getITurnoPersistente();
    public List run(InfoExecutionCourse iDE, TipoAula type) {        List shifts = new ArrayList();        try {            ISuportePersistente sp = SuportePersistenteOJB.getInstance();            IExecutionCourse executionCourse = Cloner.copyInfoExecutionCourse2ExecutionCourse(iDE);            List dshifts = sp.getITurnoPersistente().readByExecutionCourseAndType(executionCourse,                    type.getTipo());            if (dshifts != null)                for (int i = 0; i < dshifts.size(); i++) {                    ITurno dshift = (ITurno) dshifts.get(i);                    InfoShift shift = (InfoShift) Cloner.get(dshift);                    shifts.add(shift);                }        } catch (ExcepcaoPersistencia e) {            e.printStackTrace();        }        return shifts;    }