queryResult.setResult(query.limit(maxRes).list(jpaQuery.getBasePath()));
queryResult.setCount(query.count());
result = queryResult;
}
} else {
result = query.list(jpaQuery.getBasePath());
}
} else {
result = query.uniqueResult(jpaQuery.getBasePath());
}
if (etx != null && etx.isActive()) {