File productDir = new File(baseDir.getCanonicalPath(), "products");
productDir.mkdir();
Map<String, Product> products = new HashMap<String, Product>();
for (Entitlement entitlement : consumer.getEntitlements()) {
Pool pool = entitlement.getPool();
<BUG>for (Product providedProduct : productCurator.getPoolProvidedProductsCached(pool.getId())) {
products.put(providedProduct.getId(), providedProduct);</BUG>
}
Product product = pool.getProduct();
products.put(product.getId(), product);

File productDir = new File(baseDir.getCanonicalPath(), "products");
productDir.mkdir();
Map<String, Product> products = new HashMap<String, Product>();
for (Entitlement entitlement : consumer.getEntitlements()) {
Pool pool = entitlement.getPool();
for (Product providedProduct : productCurator.getPoolProvidedProductsCached(pool)) {
products.put(providedProduct.getId(), providedProduct);
}
Product product = pool.getProduct();
products.put(product.getId(), product);
