code: private static Collection toQuery(Collection coll, Key[] keys) throws PageException {
  	Object src, trg;
  	for (int i = 0; i < keys.length; i++) {
  	    trg = toQuery(src = coll.get(keys[i], null));
  	    if (src != trg) coll.setEL(keys[i], trg);
  	}
  	return coll;
      }
docs: /*
  private static Object toQuery(Query qry) throws DatabaseException { int
  rows=qry.getRecordcount(); String[] columns = qry.getColumns(); Object src,trg; for(int
  row=1;row<=rows;row++) { for(int col=0;col<columns.length;col++) {
  trg=toQuery(src=qry.getAt(columns[col], row, null)); if(src!=trg) qry.setAtEL(columns[col], row,
  trg); } } return qry; }