System.out.println(s);
    public String toWholeXml () {      StringBuffer s = new StringBuffer("<");      s.append(QUERY_RESULT_TAG);      XmlUtils.appendAttribute(ID_ATT, id, s);      s.append(">\n");      s.append(aQuery.toXML());      s.append(getResultSet().toXml());      for (Iterator i = alerts.iterator(); i.hasNext(); )      {        AlertDescriptor ad = new AlertDescriptor((Alert)i.next());        s.append(ad.toXml());      }      XmlUtils.appendCloseTag(QUERY_RESULT_TAG, s);      System.out.println(s);      return s.toString();    }