session.addQueryResult(seq);
resp.setCollections(new QueryResponseCollections(collections));
resp.setHits(seq.getItemCount());
resp.setQueryTime(System.currentTimeMillis() - start);
expr.reset();
context.reset();
} catch (final Exception e) {
LOG.debug(e.getMessage(), e);
throw new RemoteException("query execution failed: " + e.getMessage());
} finally {
pool.release(broker);