return;
}
try { // OK, let's try
for (Iterator i = handlers.iterator(); i.hasNext();) { // Try each query handler
QueryHandler handler = (QueryHandler) i.next(); // Get the query handler
query = handler.query(query); // Give it the query
if (!query.getResults().isEmpty()) { // Did it give any result?
Result result = (Result) query.getResults().get(0); // Yes, get the result
deliverResult(handler, result, res); // And deliver it
return; // Done!
}