List<Unit> allActiveParentUnits = new ArrayList<Unit>();
List<Unit> allParentUnits = new ArrayList<Unit>();
    private List<Unit> getParentUnitsByState(YearMonthDay currentDate, boolean state) {	List<Unit> allActiveParentUnits = new ArrayList<Unit>();	for (Unit subUnit : this.getParentUnits()) {	    if (subUnit.isActive(currentDate) == state) {		allActiveParentUnits.add(subUnit);	    }	}	return allActiveParentUnits;    }