saveSessionData();
    private void newMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_newMenuItemActionPerformed        saveSessionData();        JFileChooser jfc = new JFileChooser(_defaultDir);        jfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);        jfc.setDialogTitle("Select a directory to write the session into");        int returnVal = jfc.showOpenDialog(this);        if (returnVal == JFileChooser.APPROVE_OPTION) {            File file = jfc.getSelectedFile();            String dir = file.toString() + System.getProperty("file.separator");            try {                if (FileSystemStore.isExistingSession(dir)) {                    System.err.println(dir + " is an existing session!");                } else {                    FileSystemStore store = new FileSystemStore(dir);                    store.init();                    _framework.setSessionStore(store);                }            } catch (StoreException se) {                // pop up an alert dialog box or something                System.err.println("Error loading session : " + se);            }        }        _defaultDir = jfc.getCurrentDirectory();    }//GEN-LAST:event_newMenuItemActionPerformed