String dir = properties.getProperty("working-dir", System .getProperty("exist.home"));
String dir = properties.getProperty("working-dir", Configuration.getPath());
    private void uploadAction(ActionEvent ev) {        // TODO store last file choose in properties        String dir = properties.getProperty("working-dir", System                .getProperty("exist.home"));        JFileChooser chooser = new JFileChooser(dir);        chooser.setMultiSelectionEnabled(true);        chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);        chooser.addChoosableFileFilter(new BinaryFileFilter());        chooser.addChoosableFileFilter(new XMLFileFilter());        if (chooser.showDialog(this, "Select files or directories to store") == JFileChooser.APPROVE_OPTION) {            final File[] files = chooser.getSelectedFiles();            if (files.length > 0) {                new Thread() {                    public void run() {                        UploadDialog upload = new UploadDialog();                        try {                            client.parse(files, upload);                            client.getResources();                        } catch (XMLDBException e) {                            showErrorMessage("XMLDBException: "                                    + e.getMessage(), e);                        }                    }                }.start();            }            File selectedDir = chooser.getCurrentDirectory();            properties                    .setProperty("working-dir", selectedDir.getAbsolutePath());        }    }