}
} else {
defaultSelectedCollection = path.toString();
}
final CreateBackupDialog dialog = new CreateBackupDialog(
properties.getProperty(InteractiveClient.URI, "xmldb:exist://"),
properties.getProperty(InteractiveClient.USER, SecurityManager.DBA_USER),
properties.getProperty(InteractiveClient.PASSWORD, null),
new File(preferences.get("directory.backup", System.getProperty("user.home"))),
defaultSelectedCollection
);
if(JOptionPane.showOptionDialog(this, dialog, Messages.getString("ClientFrame.157"), JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, null, null) == JOptionPane.YES_OPTION) {
final String collection = dialog.getCollection();
final String backuptarget = dialog.getBackupTarget();
// DWES add check here?
final File target = new File(backuptarget);
if(target.exists()){
if(JOptionPane.showConfirmDialog( this,