Value resultValue = doQuery(user, xpath, null, null, namespaces); QueryResult qr = new QueryResult( resultValue, (System.currentTimeMillis() - startTime)); connectionPool.resultSets.put(qr.hashCode(), qr); return qr.hashCode();
DBBroker broker = null; try { broker = brokerPool.get(user); Value resultValue = doQuery(user, broker, xpath, null, null, namespaces); QueryResult qr = new QueryResult( resultValue, (System.currentTimeMillis() - startTime)); connectionPool.resultSets.put(qr.hashCode(), qr); return qr.hashCode(); } finally { brokerPool.release(broker); }
	public int executeQuery(User user, String xpath, Hashtable namespaces)		throws Exception {		long startTime = System.currentTimeMillis();		LOG.debug("query: " + xpath);		Value resultValue = doQuery(user, xpath, null, null, namespaces);		QueryResult qr =			new QueryResult(				resultValue,				(System.currentTimeMillis() - startTime));		connectionPool.resultSets.put(qr.hashCode(), qr);		return qr.hashCode();	}