InfoExternalDegreeBranchInfo info = new InfoExternalDegreeBranchInfo(); info.setName(student.getActiveStudentCurricularPlan().getBranch().getName()); info.setCode(student.getActiveStudentCurricularPlan().getBranch().getCode());
InfoExternalDegreeBranchInfo info = new InfoExternalDegreeBranchInfo(); if (student.getActiveStudentCurricularPlan().getBranch() != null) { info.setName(student.getActiveStudentCurricularPlan().getBranch().getName()); info.setCode(student.getActiveStudentCurricularPlan().getBranch().getCode()); }
    private InfoExternalDegreeBranchInfo buildExternalDegreeBranchInfo(IStudent student)    {        InfoExternalDegreeBranchInfo info = new InfoExternalDegreeBranchInfo();         info.setName(student.getActiveStudentCurricularPlan().getBranch().getName());        info.setCode(student.getActiveStudentCurricularPlan().getBranch().getCode());                return info;    }