public class ProductEntitlements {
private Map<String, Set<Entitlement>> entsByProductIds = new HashMap<String, Set<Entitlement>>();
public ProductEntitlements(Collection<Entitlement> entitlements, ProductCurator productCurator) {
for (Entitlement ent : entitlements) {
addProductIdToMap(ent.getPool().getProductId(), ent);
<BUG>for (Product pp : productCurator.getPoolProvidedProductsCached(ent.getPool().getId())) {
addProductIdToMap(pp.getId(), ent);</BUG>
}
}
}

public class ProductEntitlements {
private Map<String, Set<Entitlement>> entsByProductIds = new HashMap<String, Set<Entitlement>>();
public ProductEntitlements(Collection<Entitlement> entitlements, ProductCurator productCurator) {
for (Entitlement ent : entitlements) {
addProductIdToMap(ent.getPool().getProductId(), ent);
for (Product pp : productCurator.getPoolProvidedProductsCached(ent.getPool())) {
addProductIdToMap(pp.getId(), ent);
}
}
}
