public InfoExecutionDegree run(Integer idInternal) throws FenixServiceException { IExecutionDegree executionDegree; try { ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport();
public InfoExecutionDegree run(Integer idInternal) throws FenixServiceException, ExcepcaoPersistencia { ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport();
    public InfoExecutionDegree run(Integer idInternal) throws FenixServiceException {        IExecutionDegree executionDegree;        try {            ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport();            executionDegree = (IExecutionDegree) sp.getIPersistentExecutionDegree().readByOID(                    ExecutionDegree.class, idInternal);        } catch (ExcepcaoPersistencia excepcaoPersistencia) {            throw new FenixServiceException(excepcaoPersistencia);        }        if (executionDegree == null) {            throw new NonExistingServiceException();        }        InfoExecutionDegree infoExecutionDegree = InfoExecutionDegree.newInfoFromDomain(executionDegree);        InfoDegreeCurricularPlan infoDegreeCurricularPlan = InfoDegreeCurricularPlan.newInfoFromDomain(executionDegree.getDegreeCurricularPlan());        InfoDegree infoDegree = InfoDegree.newInfoFromDomain(executionDegree.getDegreeCurricularPlan().getDegree());        infoDegreeCurricularPlan.setInfoDegree(infoDegree);        infoExecutionDegree.setInfoDegreeCurricularPlan(infoDegreeCurricularPlan);        //added by Tnia Pouso        if (executionDegree.getCoordinatorsList() != null) {            List infoCoordinatorList = new ArrayList();            ListIterator iteratorCoordinator = executionDegree.getCoordinatorsList().listIterator();            while (iteratorCoordinator.hasNext()) {                ICoordinator coordinator = (ICoordinator) iteratorCoordinator.next();                                InfoCoordinator infoCoordinator = InfoCoordinator.newInfoFromDomain(coordinator);                infoCoordinatorList.add(infoCoordinator);            }            infoExecutionDegree.setCoordinatorsList(infoCoordinatorList);        }        if (executionDegree.getPeriodExamsFirstSemester() != null) {            infoExecutionDegree.setInfoPeriodExamsFirstSemester(InfoPeriod                    .newInfoFromDomain(executionDegree.getPeriodExamsFirstSemester()));        }        if (executionDegree.getPeriodExamsSecondSemester() != null) {            infoExecutionDegree.setInfoPeriodExamsSecondSemester(InfoPeriod                    .newInfoFromDomain(executionDegree.getPeriodExamsSecondSemester()));        }        if (executionDegree.getPeriodLessonsFirstSemester() != null) {            infoExecutionDegree.setInfoPeriodLessonsFirstSemester(InfoPeriod                    .newInfoFromDomain(executionDegree.getPeriodLessonsFirstSemester()));        }        if (executionDegree.getPeriodLessonsSecondSemester() != null) {            infoExecutionDegree.setInfoPeriodLessonsSecondSemester(InfoPeriod                    .newInfoFromDomain(executionDegree.getPeriodLessonsSecondSemester()));        }        return infoExecutionDegree;    }