e.getMessage() + (e.getCause() != null ? "\nCause: " + e.getCause().getMessage() : ""), "Error while loading map",
e.getLocalizedMessage() + (e.getCause() != null ? "\nCause: " + e.getCause().getLocalizedMessage() : ""), Resources.getString("dialog.openmap.error.title"),
    public boolean loadMap(String file) {        try {            Map m = MapHelper.loadMap(file);            if (m != null) {                setCurrentMap(m);                updateRecent(file);                //This is to try and clean up any previously loaded stuffs            	System.gc();                return true;            } else {                JOptionPane.showMessageDialog(appFrame,                        "Unsupported map format", "Error while loading map",                        JOptionPane.ERROR_MESSAGE);            }        } catch (Exception e) {            JOptionPane.showMessageDialog(appFrame,                    "Error while loading " + file + ": " +                    e.getMessage() + (e.getCause() != null ? "\nCause: " +                        e.getCause().getMessage() : ""),                    "Error while loading map",                    JOptionPane.ERROR_MESSAGE);            e.printStackTrace();        }        return false;    }