if(this.getSubUnits().contains(childUnit)) {
if (this.getSubUnits(accountabilityType.getType()).contains(childUnit)) {
    public Accountability addSubUnit(Unit childUnit, AccountabilityType accountabilityType) {	if (this.equals(childUnit)) {	    throw new DomainException("error.unit.equals.subUnit");	}	if(this.getSubUnits().contains(childUnit)) {	    throw new DomainException("error.unit.subUnit.is.already.subUnit");	}	YearMonthDay currentDate = new YearMonthDay();	List<Unit> parentUnits = (childUnit.isActive(currentDate)) ? getAllActiveParentUnits(currentDate) : getAllInactiveParentUnits(currentDate);	if (parentUnits.contains(childUnit)) {	    throw new DomainException("error.unit.childUnit.is.already.parentUnit");	}	return new Accountability(this, childUnit, accountabilityType);    }