Looking at that class (mostly untouched by this patch), we are pretty inconsistent about var names for the product ids. I see:

List<String> productUuids
String pid
String productId
@Path("/{prod_id}/statistics") and String id
String[] productIds

Wacky.