IExecutionDegree executionDegree = masterDegreeCandidate.getExecutionDegree(); InfoExecutionDegree infoExecutionDegree = InfoExecutionDegreeWithInfoExecutionYearAndDegreeCurricularPlan.newInfoFromDomain(executionDegree); infoMasterDegreeCandidate.setInfoExecutionDegree(infoExecutionDegree);
    public List run(Integer personID) throws FenixServiceException {        ISuportePersistente sp = null;        List result = null;        try {            sp = PersistenceSupportFactory.getDefaultPersistenceSupport();            result = sp.getIPersistentMasterDegreeCandidate().readByPersonID(personID);        } catch (ExcepcaoPersistencia ex) {            FenixServiceException newEx = new FenixServiceException("Persistence layer error");            newEx.fillInStackTrace();            throw newEx;        }        List candidateList = new ArrayList();        Iterator iterator = result.iterator();        while (iterator.hasNext()) {            IMasterDegreeCandidate masterDegreeCandidate = (IMasterDegreeCandidate) iterator.next();            InfoMasterDegreeCandidate infoMasterDegreeCandidate = InfoMasterDegreeCandidateWithInfoPerson                    .newInfoFromDomain(masterDegreeCandidate);            Iterator situationIterator = masterDegreeCandidate.getSituations().iterator();            List situations = new ArrayList();            while (situationIterator.hasNext()) {                InfoCandidateSituation infoCandidateSituation = Cloner                        .copyICandidateSituation2InfoCandidateSituation((ICandidateSituation) situationIterator                                .next());                situations.add(infoCandidateSituation);                // Check if this is the Active Situation                if (infoCandidateSituation.getValidation().equals(new State(State.ACTIVE)))                    infoMasterDegreeCandidate.setInfoCandidateSituation(infoCandidateSituation);            }            infoMasterDegreeCandidate.setSituationList(situations);            candidateList.add(infoMasterDegreeCandidate);        }        return candidateList;    }