public static final String REST_CONTENT_TYPE_queryDocument = Headers.TYPE_TEXT_XML;
public String queryDocument(String style, String query, Map nsMap, String key) throws DBException {
Transaction tx = new Transaction();
try {
return ResultSetWrapper.toText(col.queryDocument(tx, style, query, new NamespaceMap(nsMap), key));
}
catch ( DBException e ) {
tx.cancel();
throw e;
}