Set<Party> officeDegreeUnits = office.getChildParties(AccountabilityTypeEnum.ACADEMIC_STRUCTURE, Unit.class);
List<Party> officeDegreeUnits = office.getChildParties( AccountabilityTypeEnum.ACADEMIC_STRUCTURE, Unit.class);
    public boolean isForOffice(Unit office) {	Set<Party> officeDegreeUnits = office.getChildParties(AccountabilityTypeEnum.ACADEMIC_STRUCTURE,		Unit.class);	StudentCurricularPlan studentCurricularPlan = getActiveOrConcludedOrLastStudentCurricularPlan();	if (officeDegreeUnits.contains(studentCurricularPlan.getDegreeCurricularPlan().getDegree()		.getUnit())) {	    return true;	}	return false;    }