StudentCurricularPlan concludedStudentCurricularPlan = null; for (final StudentCurricularPlan studentCurricularPlan : getStudentCurricularPlans()) { if (studentCurricularPlan.getCurrentState() == StudentCurricularPlanState.ACTIVE) { return studentCurricularPlan; } if (concludedStudentCurricularPlan == null && studentCurricularPlan.getCurrentState() == StudentCurricularPlanState.SCHOOLPARTCONCLUDED) { concludedStudentCurricularPlan = studentCurricularPlan; } } return concludedStudentCurricularPlan;
StudentCurricularPlan concludedStudentCurricularPlan = null; for (final StudentCurricularPlan studentCurricularPlan : getStudentCurricularPlans()) { if (studentCurricularPlan.getCurrentState() == StudentCurricularPlanState.ACTIVE) { return studentCurricularPlan; } if (concludedStudentCurricularPlan == null && studentCurricularPlan.getCurrentState() == StudentCurricularPlanState.SCHOOLPARTCONCLUDED) { concludedStudentCurricularPlan = studentCurricularPlan; }
	public StudentCurricularPlan getActiveOrConcludedStudentCurricularPlan() {		StudentCurricularPlan concludedStudentCurricularPlan = null;		for (final StudentCurricularPlan studentCurricularPlan : getStudentCurricularPlans()) {			if (studentCurricularPlan.getCurrentState() == StudentCurricularPlanState.ACTIVE) {				return studentCurricularPlan;			}			if (concludedStudentCurricularPlan == null					&& studentCurricularPlan.getCurrentState() == StudentCurricularPlanState.SCHOOLPARTCONCLUDED) {				concludedStudentCurricularPlan = studentCurricularPlan;			}		}		return concludedStudentCurricularPlan;	}