try { ISuportePersistente sp = SuportePersistenteOJB.getInstance();
ISuportePersistente sp = SuportePersistenteOJB.getInstance();
    public Boolean run(InfoShift infoShift, List classOIDs) throws FenixServiceException {        boolean result = false;        try {            ISuportePersistente sp = SuportePersistenteOJB.getInstance();            ITurno shift = (ITurno) sp.getITurnoPersistente().readByOID(Turno.class,                    infoShift.getIdInternal());            sp.getITurnoPersistente().simpleLockWrite(shift);            for (int i = 0; i < classOIDs.size(); i++) {                ITurma schoolClass = (ITurma) sp.getITurmaPersistente().readByOID(Turma.class,                        (Integer) classOIDs.get(i));                ITurmaTurno classShift = sp.getITurmaTurnoPersistente().readByTurmaAndTurno(schoolClass,                        shift);                if (classShift != null) {                    sp.getITurmaTurnoPersistente().delete(classShift);                }                shift.getAssociatedClasses().remove(schoolClass);                sp.getITurmaPersistente().simpleLockWrite(schoolClass);                schoolClass.getAssociatedShifts().remove(shift);            }            result = true;        } catch (ExcepcaoPersistencia ex) {            throw new FenixServiceException(ex.getMessage());        }        return new Boolean(result);    }