item = new JMenuItem("Edit properties");
item = new JMenuItem("Resource properties");
	private JMenuBar createMenuBar() {		JMenuBar menubar = new JMenuBar();		JMenu fileMenu = new JMenu("File");		fileMenu.setMnemonic(KeyEvent.VK_F);		menubar.add(fileMenu);		JMenuItem item = new JMenuItem("Store files/directories", KeyEvent.VK_S);		item.setAccelerator(KeyStroke.getKeyStroke("control S"));		item.addActionListener(new ActionListener() {			public void actionPerformed(ActionEvent e) {				uploadAction(e);			}		});		fileMenu.add(item);		item = new JMenuItem("Create collection", KeyEvent.VK_C);		item.setAccelerator(KeyStroke.getKeyStroke("control N"));		item.addActionListener(new ActionListener() {			public void actionPerformed(ActionEvent e) {				newCollectionAction(e);			}		});		fileMenu.add(item);		item = new JMenuItem("Remove");		item.setAccelerator(KeyStroke.getKeyStroke("control D"));		item.addActionListener(new ActionListener() {			public void actionPerformed(ActionEvent e) {				removeAction(e);			}		});		fileMenu.add(item);		item = new JMenuItem("Edit properties");		item.setAccelerator(KeyStroke.getKeyStroke("control P"));		item.addActionListener(new ActionListener() {			public void actionPerformed(ActionEvent e) {				setPermAction(e);			}		});		fileMenu.add(item);		item = new JMenuItem("Quit", KeyEvent.VK_Q);		item.setAccelerator(KeyStroke.getKeyStroke("control Q"));		item.addActionListener(new ActionListener() {			public void actionPerformed(ActionEvent e) {				close();			}		});		fileMenu.add(item);		JMenu toolsMenu = new JMenu("Tools");		toolsMenu.setMnemonic(KeyEvent.VK_T);		menubar.add(toolsMenu);		item = new JMenuItem("Find", KeyEvent.VK_F);		item.setAccelerator(KeyStroke.getKeyStroke("control F"));		item.addActionListener(new ActionListener() {			public void actionPerformed(ActionEvent e) {				findAction(e);			}		});		toolsMenu.add(item);		toolsMenu.addSeparator();		item = new JMenuItem("Edit users", KeyEvent.VK_F);		item.setAccelerator(KeyStroke.getKeyStroke("control U"));		item.addActionListener(new ActionListener() {			public void actionPerformed(ActionEvent e) {				newUserAction(e);			}		});		toolsMenu.add(item);		toolsMenu.addSeparator();		item = new JMenuItem("Backup", KeyEvent.VK_B);		item.addActionListener(new ActionListener() {			public void actionPerformed(ActionEvent e) {				backupAction(e);			}		});		toolsMenu.add(item);		item = new JMenuItem("Restore", KeyEvent.VK_R);		item.addActionListener(new ActionListener() {			public void actionPerformed(ActionEvent e) {				restoreAction(e);			}		});		toolsMenu.add(item);		JMenu dbMenu = new JMenu("Database");		dbMenu.setMnemonic(KeyEvent.VK_D);		menubar.add(dbMenu);		item = new JMenuItem("Shutdown", KeyEvent.VK_S);		item.addActionListener(new ActionListener() {			public void actionPerformed(ActionEvent e) {				display("shutdown\n");				process.setAction("shutdown");			}		});		dbMenu.add(item);		dbMenu.addSeparator();		ButtonGroup group = new ButtonGroup();				item = new JRadioButtonMenuItem(properties.getProperty("uri"), true);		item.addActionListener(new ActionListener() {			public void actionPerformed(ActionEvent e) {				newServerURIAction(properties.getProperty("uri"));			}		});		dbMenu.add(item);		group.add(item);		String next;		for (Enumeration enum = properties.propertyNames(); enum.hasMoreElements();) {			next = (String) enum.nextElement();			if (next.startsWith("alternate_uri_")) {				final String uri = properties.getProperty(next);				if(uri.equals(properties.getProperty("uri")))					continue;				item = new JRadioButtonMenuItem(uri, false);				item.addActionListener(new ActionListener() {					public void actionPerformed(ActionEvent e) {						newServerURIAction(uri);					}				});				dbMenu.add(item);				group.add(item);			}		}