String currentSessionFilePath = mainFrame.getSession().getPath();
String initFile = currentSessionFilePath == null ? UIConstants.DEFAULT_SESSION_FILE : currentSessionFilePath;
String sessionName = (new File(initFile)).getName();
GSFileBrowser gsFileBrowser = new GSFileBrowser(IGV.getMainFrame(), GSFileBrowser.Mode.SAVE);
gsFileBrowser.setVisible(true);
String gsPath = gsFileBrowser.getPath();
if (gsPath == null) return;
if (!gsPath.endsWith(".xml")) {
gsPath += ".xml";
}