List<String> productIds = catalog.query(this.getCatalogQuery(
complexQuery, productType), productType);
for (String productId : productIds) {
Product product = catalog.getProductById(productId);
product.setProductType(productType);
QueryResult qr = new QueryResult(product, this
.getReducedMetadata(product, complexQuery
.getReducedMetadata()));
qr.setToStringFormat(complexQuery
.getToStringResultFormat());
queryResults.add(qr);
}
}