waitForAndReturnResults(qra.getID(), out, false);
if (aq.timeoutSupplied()) waitForAndReturnResults(qra.getID(), out, false, aq.getTimeout()); else waitForAndReturnResults(qra.getID(), out, false);
  private void publishHTMLQuery (HttpServletRequest request,                                 PrintWriter out) {    // parse form post request    AggregationQuery aq = HTMLPresenter.processQueryForm(request);    QueryResultAdapter qra = new QueryResultAdapter(aq);    publishAdd(qra);    if (aq.getType() == QueryType.PERSISTENT)    {      // update menu frame with new query      sendHomePage(out);    }    else    {      waitForAndReturnResults(qra.getID(), out, false);    }  }