public void setAccountTypes(AccountTypes accountTypes) {
        this.accountTypes = accountTypes;
        if (accountTypes != null) {
            selectedAccountTypes.clear();
            for (AccountType type : accountTypes.getBusinessObjects()) {
                selectedAccountTypes.put(type, Boolean.TRUE);
            }
        }
        boxes.clear();
        filter.removeAll();

        for (AccountType type : accountTypes.getBusinessObjects()) {
            JCheckBox checkBox = new JCheckBox(getBundle("BusinessModel").getString(type.getName().toUpperCase()));
            checkBox.setSelected(true);
            checkBox.setActionCommand(type.getName());
            checkBox.addActionListener(this);
            boxes.put(type, checkBox);
            filter.add(checkBox);
        }
    }