public Set<StudentCurricularPlan> search() {
final ExecutionYear executionYear = getExecutionYear();
final Set<StudentCurricularPlan> studentCurricularPlans = new HashSet<StudentCurricularPlan>();
if (degreeDomainReferences != null) {
for (final Degree degreeDomainReference : degreeDomainReferences) {
final Degree degree = degreeDomainReference;
for (final DegreeCurricularPlan degreeCurricularPlan : degree.getDegreeCurricularPlansSet()) {
if (degreeCurricularPlan.isActive()) {
for (final StudentCurricularPlan studentCurricularPlan : degreeCurricularPlan
.getStudentCurricularPlansSet()) {
if (studentCurricularPlan.hasEnrolments(executionYear)) {
studentCurricularPlans.add(studentCurricularPlan);