if (siteDomainParamBean.getCheckoutAllowsShippingQuote() != null && siteDomainParamBean.getCheckoutAllowsShippingQuote().equals(String.valueOf(Constants.VALUE_YES))) {
form.setAllowShippingQuote(true);
}
}
ContentApi contentApi = new ContentApi(request);
Vector<ItemInfo> crossSellItems = new Vector<ItemInfo>();
iterator = shoppingCart.getShoppingCartItems().iterator();
while (iterator.hasNext()) {
ShoppingCartItem shoppingCartItem = (ShoppingCartItem) iterator.next();
Item item = shoppingCartItem.getItem();
if (item.getItemTypeCd().equals(Constants.ITEM_TYPE_SKU)) {
item = item.getItemSkuParent();
}
Iterator<?> itemsCrossSell = item.getItemsCrossSell().iterator();
while (itemsCrossSell.hasNext()) {
Item upSellItem = (Item) itemsCrossSell.next();
if (isExist(crossSellItems, upSellItem)) {
continue;
}
ItemInfo itemInfo = contentApi.formatItem(upSellItem);
crossSellItems.add(itemInfo);
}
}
form.setCrossSellItems(crossSellItems);
}