if (droidContext.getSelectedProfile().getProfile().getState().equals(ProfileState.FINISHED)
|| droidContext.getSelectedProfile().getProfile().getState().equals(ProfileState.STOPPED)) {
String filePath = "";
JFileChooser c = new JFileChooser();
c.setDialogTitle("Please provide name of the file.");
PlanetXMLFileFilter fileFilter = new PlanetXMLFileFilter("xml", "Planet XML");
c.addChoosableFileFilter(fileFilter);
int rVal = c.showSaveDialog(this);
if (rVal == JFileChooser.APPROVE_OPTION) {
if (fileFilter.getExtension(c.getSelectedFile()) == null) {
filePath = c.getCurrentDirectory().toString() + File.separator + c.getSelectedFile().getName()
+ ".xml";
} else {
filePath = c.getSelectedFile().getPath();
}