DegreeInfo latestDegreeInfo = degreeCurricularPlan.getDegree().getLatestDegreeInfo(); if (latestDegreeInfo != null) { return InfoDegreeInfo.newInfoFromDomain(latestDegreeInfo);
DegreeInfo mostRecentDegreeInfo = degreeCurricularPlan.getDegree().getMostRecentDegreeInfo(); if (mostRecentDegreeInfo != null) { return InfoDegreeInfo.newInfoFromDomain(mostRecentDegreeInfo);
    public InfoDegreeInfo run(Integer degreeCurricularPlanID) throws FenixServiceException,            ExcepcaoPersistencia {        if (degreeCurricularPlanID == null) {            throw new FenixServiceException("error.invalidDegreeCurricularPlan");        }        DegreeCurricularPlan degreeCurricularPlan = rootDomainObject.readDegreeCurricularPlanByOID(degreeCurricularPlanID);        DegreeInfo latestDegreeInfo = degreeCurricularPlan.getDegree().getLatestDegreeInfo();        if (latestDegreeInfo != null) {            return InfoDegreeInfo.newInfoFromDomain(latestDegreeInfo);        }        return null;    }