public static void modifyAccountTypes(List<Account> accountList, AccountTypes accountTypes){
        if(!accountList.isEmpty()) {
            boolean singleMove;
            if (accountList.size() == 1) {
                singleMove = true;
            } else {
                int option = JOptionPane.showConfirmDialog(null, getBundle("BusinessActions").getString("APPLY_SAME_TYPE_FOR_ALL_ACCOUNTS"),
                        getBundle("BusinessActions").getString("ALL"),
                        JOptionPane.YES_NO_OPTION);
                singleMove = (option == JOptionPane.YES_OPTION);
            }
            if (singleMove) {
                Object[] types = accountTypes.getBusinessObjects().toArray();
                int nr = JOptionPane.showOptionDialog(null, ActionUtils.getFormattedString(ActionUtils.CHOOSE_NEW_TYPE),
                        ActionUtils.getFormattedString(ActionUtils.CHANGE_TYPE),
                        JOptionPane.DEFAULT_OPTION, JOptionPane.INFORMATION_MESSAGE, null, types, null);
                if (nr != JOptionPane.CANCEL_OPTION && nr != JOptionPane.CLOSED_OPTION) {
                    for (Account account : accountList) {
                        account.setType((AccountType) types[nr]);
                    }
                }
            } else {
                for (Account account : accountList) {
                    Object[] types = accountTypes.getBusinessObjects().toArray();
                    int nr = JOptionPane.showOptionDialog(null, ActionUtils.getFormattedString(CHOOSE_NEW_TYPE_FOR,account.getName()),
                            ActionUtils.getFormattedString(ActionUtils.CHANGE_TYPE), JOptionPane.DEFAULT_OPTION, JOptionPane.INFORMATION_MESSAGE, null, types,
                            account.getType());
                    if (nr != JOptionPane.CANCEL_OPTION && nr != JOptionPane.CLOSED_OPTION) {
                        account.setType((AccountType) types[nr]);
                    }
                }
            }
        }
        //ComponentMap.refreshAllFrames();
    }