sub.getOrderNumber());
newPool.setDerivedProvidedProducts(subProvidedProducts);
if (sub.getProvidedProducts() != null) {
for (Product p : sub.getProvidedProducts()) {
ProvidedProduct providedProduct = new ProvidedProduct(p.getId(),
p.getName());
providedProduct.setPool(newPool);
providedProducts.add(providedProduct);
}
}
if (sub.getDerivedProvidedProducts() != null) {
for (Product p : sub.getDerivedProvidedProducts()) {
DerivedProvidedProduct providedProduct =
new DerivedProvidedProduct(p.getId(), p.getName());
providedProduct.setPool(newPool);
subProvidedProducts.add(providedProduct);
}
}
helper.copyProductAttributesOntoPool(sub.getProduct().getId(), newPool);