final SelectStatement selectStatement,
final Class clazz,
final QueryListener<E>... listeners) throws HBqlException {
final ResultAccessor accessor;
if (clazz.equals(HRecord.class)) {
accessor = new HRecordResultAccessor(selectStatement.getMappingContext());
}
else {
accessor = conn.getAnnotationMapping(clazz);
if (accessor == null)
throw new HBqlException("Unknown class " + clazz.getName());