try { ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport();
ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport();
    public Object run(ShiftKey keyTurno) {        List alunos = null;        List infoAlunos = null;        try {            ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport();            IShift shift = new Shift();            IExecutionCourse executionCourse = Cloner.copyInfoExecutionCourse2ExecutionCourse(keyTurno                    .getInfoExecutionCourse());            //      shift.setDisciplinaExecucao(executionCourse);            //      shift.setNome(keyTurno.getShiftName());            ITurnoPersistente persistentShift = sp.getITurnoPersistente();            shift = persistentShift.readByNameAndExecutionCourse(keyTurno.getShiftName(),                    executionCourse);            alunos = sp.getITurnoAlunoPersistente().readByShift(shift);            Iterator iterator = alunos.iterator();            infoAlunos = new ArrayList();            while (iterator.hasNext()) {                IStudent elem = (IStudent) iterator.next();                InfoPerson infoPessoa = new InfoPerson();                infoPessoa.setNome(elem.getPerson().getNome());                infoPessoa.setUsername(elem.getPerson().getUsername());                infoPessoa.setPassword(elem.getPerson().getPassword());                infoPessoa.setEmail(elem.getPerson().getEmail());                infoAlunos.add(new InfoStudent(elem.getNumber(), elem.getState(), infoPessoa, elem                        .getDegreeType()));            }        } catch (ExcepcaoPersistencia ex) {            ex.printStackTrace();        }        return infoAlunos;    }