return result;
Iterator iterator = resultTemp.iterator(); while (iterator.hasNext()) { StudentCurricularPlan studentCurricularPlan = (StudentCurricularPlan) iterator.next(); result.add(InfoStudentCurricularPlan.newInfoFromDomain(studentCurricularPlan)); } } else { throw new NotAuthorizedException();
	public List<InfoStudentCurricularPlan> run(Integer studentId) throws FenixServiceException, ExcepcaoPersistencia {		List<InfoStudentCurricularPlan> result = new ArrayList<InfoStudentCurricularPlan>();		Registration registration = rootDomainObject.readRegistrationByOID(studentId);		if (registration == null) {			throw new InvalidArgumentsServiceException("invalidStudentId");		}        		if (registration.getDegreeType().equals(DegreeType.MASTER_DEGREE)) {			List<StudentCurricularPlan> resultTemp = new ArrayList<StudentCurricularPlan>();			resultTemp.addAll(registration.getStudentCurricularPlans());			Iterator iterator = resultTemp.iterator();			while (iterator.hasNext()) {				StudentCurricularPlan studentCurricularPlan = (StudentCurricularPlan) iterator.next();				result						.add(InfoStudentCurricularPlan								.newInfoFromDomain(studentCurricularPlan));			}		} else {			throw new NotAuthorizedException();		}		return result;	}