public static void modifyAccountNames(List<Account> accountList, Accounts accounts) {
        if (!accountList.isEmpty()) {
            for (Account account : accountList) {
                String oldName = account.getName();
                boolean retry = true;
                while (retry) {
                    String newName = JOptionPane.showInputDialog(getBundle("BusinessActions").getString("NEW_NAME"), oldName.trim());
                    try {
                        if (newName != null && !oldName.trim().equals(newName.trim())) {
                            accounts.modifyAccountName(oldName, newName);
                            //ComponentMap.refreshAllFrames();
                        }
                        retry = false;
                    } catch (DuplicateNameException e) {
                        ActionUtils.showErrorMessage(ActionUtils.ACCOUNT_DUPLICATE_NAME,newName.trim());
                    } catch (EmptyNameException e) {
                        ActionUtils.showErrorMessage(ActionUtils.ACCOUNT_NAME_EMPTY);
                    }
                }
            }
        }
        //ComponentMap.refreshAllFrames();
    }