xpath = "document(*)" + xpath;
xpath = "document()" + xpath;
	private void doQuery() {		String xpath = (String)query.getSelectedItem();		if (xpath.length() == 0)			return;		resultDisplay.setText("");		try {			XPathQueryServiceImpl service =				(XPathQueryServiceImpl) collection.getService("XPathQueryService", "1.0");			service.setProperty("pretty", properties.getProperty("indent"));			if (!(xpath.startsWith("document(")				|| xpath.startsWith("collection(")				|| xpath.startsWith("xcollection("))) {				String collname = (String) collections.getSelectedItem();				if (collname.equals("*"))					xpath = "document(*)" + xpath;				else					xpath = "collection(\"" + collname + "\")" + xpath;			}			ResourceSet result = service.query(xpath);			model.setResourceSet(result);		} catch (XMLDBException e) {			ClientFrame.showErrorMessage(				"An exception occurred during query execution: " + e.getMessage(),				e);		}		query.addItem(xpath);	}