docs: private void setupQuery(Query query, Object[] paramValues, Type[] paramTypes, Integer offset, Integer limit){
      	if (paramValues != null && paramTypes != null){
          	query.setParameters(paramValues, paramTypes);
      	}
      	if (offset != null){
          	query.setFirstResult(offset);
      	}
      	if (limit != null){
          	query.setMaxResults(limit);
      	}
      }