code: private Object _deserializeQuery(Element recordset) throws ConverterException {
  	try {
  	    // create Query Object
  	    Query query = new QueryImpl(lucee.runtime.type.util.ListUtil.listToArray(recordset.getAttribute("fieldNames"), ','),
  		    Caster.toIntValue(recordset.getAttribute("rowCount")), "query");
  
  	    NodeList list = recordset.getChildNodes();
  	    int len = list.getLength();
  	    for (int i = 0; i < len; i++) {
  		Node node = list.item(i);
  		if (node instanceof Element) {
  		    _deserializeQueryField(query, (Element) node);
  		}
  	    }
  	    return query;
  	}
  	catch (PageException e) {
  	    throw toConverterException(e);
  	}
  
      }
docs: Desirialize a Query Object
  
  @param recordset Query Object as XML Element
  @return Query Object
  @throws ConverterException