&& unit.getType().equals(PartyType.DEPARTMENT)
&& unit.getType().equals(PartyTypeEnum.DEPARTMENT)
    private boolean unitDepartment(Unit unit, boolean onlyActiveEmployees){        if (unit.getType() != null                && unit.getType().equals(PartyType.DEPARTMENT)                && unit.getDepartment() != null                && (!onlyActiveEmployees || unit.getDepartment()                        .getCurrentActiveWorkingEmployees().contains(this))){            return true;        }        return false;    }    