public List run(Integer executionYearOID, TipoCurso typeOfCourse) throws FenixServiceException { List infoExecutionDegrees = new ArrayList(); try {
public List run(Integer executionYearOID, TipoCurso typeOfCourse) throws ExcepcaoPersistencia { final ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport(); final IPersistentExecutionDegree executionDegreeDAO = sp.getIPersistentExecutionDegree();
    public List run(Integer executionYearOID, TipoCurso typeOfCourse) throws FenixServiceException {        List infoExecutionDegrees = new ArrayList();        try {            ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport();            IPersistentExecutionDegree executionDegreeDAO = sp.getIPersistentExecutionDegree();            List executionDegrees = executionDegreeDAO.readByExecutionYearOIDAndDegreeType(                    executionYearOID, typeOfCourse);            if (executionDegrees != null && !executionDegrees.isEmpty()) {                for (int i = 0; i < executionDegrees.size(); i++) {                    infoExecutionDegrees.add(Cloner.get((IExecutionDegree) executionDegrees.get(i)));                }            }        } catch (ExcepcaoPersistencia ex) {            throw new FenixServiceException(ex);        }        return infoExecutionDegrees;    }