code: public static Key[] getColumnNames(Query qry) {
  	Query qp = Caster.toQuery(qry, null);
  
  	if (qp != null) return qp.getColumnNames();
  	String[] strNames = qry.getColumns();
  	Key[] names = new Key[strNames.length];
  	for (int i = 0; i < names.length; i++) {
  	    names[i] = KeyImpl.getInstance(strNames[i]);
  	}
  	return names;
      }
docs: return column names as Key from a query
  
  @param qry
  @return