updateCommandHistory("Opened configuration: " + file.getName());
        private void openFile(File file) {            try {                XMLImporter importer = new XMLImporter(file.getAbsolutePath());                hostnameLabel.setText(preferences.getStringValue(                    HOSTNAME));                if (recentFilesMenu.getComponentCount() > 1) {                    recentFilesMenu.remove(10);                }                JMenuItem recentItem = new JMenuItem(file.getPath());                recentItem.addActionListener(new OpenAction(file));                recentFilesMenu.add(recentItem, 0);                recentFilesMenu.repaint();                recentFilesMenu.revalidate();                actualFile = file;                updateCommandHistory("Opened configuration: " + file.getName());                setTitle(AdHocRailway.NAME + " : [ "                    + actualFile.getAbsolutePath() + " ]");            } catch (ConfigurationException e) {                ExceptionProcessor.getInstance().processException(                    "Error loading file", e);            }        }