this.skuId = doi.getSku().getId();
this.productId = doi.getProduct().getId();
this.isBundle = false;
this.isDiscountingAllowed = doi.isDiscountingAllowed();
} else if (model instanceof BundleOrderItem) {
BundleOrderItem boi = (BundleOrderItem) model;
this.skuId = boi.getSku().getId();
this.productId = boi.getProduct().getId();
this.isBundle = true;
this.isDiscountingAllowed = boi.isDiscountingAllowed();
//Wrap up all the discrete order items for this bundle order item
List<DiscreteOrderItem> discreteItems = boi.getDiscreteOrderItems();
if (discreteItems != null && !discreteItems.isEmpty()) {
this.bundleItems = new ArrayList<OrderItemWrapper>();
for (DiscreteOrderItem doi : discreteItems) {
OrderItemWrapper doiWrapper = (OrderItemWrapper) context.getBean(OrderItemWrapper.class.getName());
doiWrapper.wrapSummary(doi, request);