addDepartments(department);
super.addDepartments(department);
    public void edit(String code, String name, Collection<Department> departments) {        fillFields(code, name);        for (final Department department : this.getDepartments()) {            if (!departments.contains(department)) {                removeDepartments(department);            }        }        for (final Department department : departments) {            if (!hasDepartments(department)) {                addDepartments(department);            }        }    }