private static void refreshAllAccelerators(Map<String, JMenuItem> itemMap) {
        // This method is called everytime menu and popup-menu is created.
        File keyBindConf = Bootstrap.getSystemFile("keybind.conf");
        if (!keyBindConf.exists()) {
            return;
        }
        Map<String, KeyStroke> keyMap = new HashMap<String, KeyStroke>();
        try {
            Scanner r = new Scanner(keyBindConf);
            try {
                final Pattern p = Pattern.compile("\\s*([^=\\s]+)\\s*=(.*)");
                while (r.hasNextLine()) {
                    final String line = r.nextLine();
                    if (line.trim().length() == 0 || line.matches("\\s*#.*")) {
                        continue;
                    }
                    Matcher m = p.matcher(line);
                    if (m.matches()) {
                        keyMap.put(m.group(1), Utilities.getKeyStroke(m.group(2)));
                    }
                }
            } finally {
                r.close();
            }
        } catch (FileNotFoundException ex) {
            throw new RuntimeException(ex);
        }
        for (final Entry<String, KeyStroke> entry : keyMap.entrySet()) {
            final String k = entry.getKey();
            if (itemMap.containsKey(k)) {
                itemMap.get(k).setAccelerator(entry.getValue());
            }
        }
    }