.equals("Locale", localeText)
.offset(offset)
.limit(PAGE_SIZE)
.build();
ProductServicePage page;
List<ProductService> productServices = Lists.newArrayList();
do {
page = service.get(selector);
if (page.getTotalNumEntries() > 0) {
for (ProductService productService : page.getEntries()) {
System.out.printf("Product/service with text '%s' found%n", productService.getText());
productServices.add(productService);
}
} else {
System.out.println("No products/services found");
}
offset += PAGE_SIZE;
selector.getPaging().setStartIndex(offset);
} while (offset < page.getTotalNumEntries());
System.out.printf(
"Found %d products/services for product/service suggestion '%s' and locale '%s'%n",
productServices.size(), productServiceSuggestion, localeText);