client.getResources();
	private void restoreAction(ActionEvent ev) {		JFileChooser chooser = new JFileChooser();		chooser.setMultiSelectionEnabled(false);		chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);		chooser.setFileFilter(new FileFilter() {			public boolean accept(File f) {				if (f.isDirectory())					return true;				if (f.getName().equals("__contents__.xml"))					return true;				return false;			}			public String getDescription() {				return "__contents__.xml files";			}		});		if (chooser.showDialog(null, "Select backup file for restore")			== JFileChooser.APPROVE_OPTION) {			File f = chooser.getSelectedFile();			String restoreFile = f.getAbsolutePath();			try {				Restore restore =					new Restore(						properties.getProperty("user", "admin"),						properties.getProperty("password", null),						new File(restoreFile),						properties.getProperty("uri", "xmldb:exist://"));				restore.restore(true, this);			} catch (Exception e) {				e.printStackTrace();			}		}	}