for (final Iterator iterator = executionDegrees.iterator(); iterator .hasNext();) { final IExecutionDegree executionDegree = (IExecutionDegree) iterator .next(); final InfoExecutionDegree infoExecutionDegree = InfoExecutionDegreeWithInfoExecutionYear .newInfoFromDomain(executionDegree); if (executionDegree.getDegreeCurricularPlan() != null) { infoExecutionDegree .setInfoDegreeCurricularPlan(InfoDegreeCurricularPlan .newInfoFromDomain(executionDegree .getDegreeCurricularPlan())); if (executionDegree.getDegreeCurricularPlan().getDegree() != null) { infoExecutionDegree.getInfoDegreeCurricularPlan() .setInfoDegree( InfoDegree .newInfoFromDomain(executionDegree .getDegreeCurricularPlan() .getDegree())); } } infoExecutionDegreeList.add(infoExecutionDegree); }
for (final Iterator iterator = executionDegrees.iterator(); iterator.hasNext();) { final IExecutionDegree executionDegree = (IExecutionDegree) iterator.next(); if (executionDegree != null) { final InfoExecutionDegree infoExecutionDegree = InfoExecutionDegreeWithInfoExecutionYear .newInfoFromDomain(executionDegree); if (executionDegree.getDegreeCurricularPlan() != null) { infoExecutionDegree.setInfoDegreeCurricularPlan(InfoDegreeCurricularPlan .newInfoFromDomain(executionDegree.getDegreeCurricularPlan())); if (executionDegree.getDegreeCurricularPlan().getDegree() != null) { infoExecutionDegree.getInfoDegreeCurricularPlan().setInfoDegree( InfoDegree.newInfoFromDomain(executionDegree.getDegreeCurricularPlan() .getDegree())); } infoExecutionDegree.setInfoExecutionYear(infoExecutionYear); } infoExecutionDegreeList.add(infoExecutionDegree); } }
	public List run(InfoExecutionYear infoExecutionYear)			throws ExcepcaoPersistencia {		final List infoExecutionDegreeList = new ArrayList();		final ISuportePersistente sp = PersistenceSupportFactory				.getDefaultPersistenceSupport();		final IPersistentExecutionDegree executionDegreeDAO = sp				.getIPersistentExecutionDegree();		final List executionDegrees = readExecutionDegrees(infoExecutionYear,				sp, executionDegreeDAO);		for (final Iterator iterator = executionDegrees.iterator(); iterator				.hasNext();) {			final IExecutionDegree executionDegree = (IExecutionDegree) iterator					.next();			final InfoExecutionDegree infoExecutionDegree = InfoExecutionDegreeWithInfoExecutionYear					.newInfoFromDomain(executionDegree);			if (executionDegree.getDegreeCurricularPlan() != null) {				infoExecutionDegree						.setInfoDegreeCurricularPlan(InfoDegreeCurricularPlan								.newInfoFromDomain(executionDegree										.getDegreeCurricularPlan()));				if (executionDegree.getDegreeCurricularPlan().getDegree() != null) {					infoExecutionDegree.getInfoDegreeCurricularPlan()							.setInfoDegree(									InfoDegree											.newInfoFromDomain(executionDegree													.getDegreeCurricularPlan()													.getDegree()));				}			}			infoExecutionDegreeList.add(infoExecutionDegree);		}		return infoExecutionDegreeList;	}