// TAXES
Set<CartItemTax> taxes = cartItem.getTaxes();
if(taxes != null){
for (Iterator<CartItemTax> iteratorCartItemTax = taxes.iterator(); iteratorCartItemTax.hasNext();) {
CartItemTax cartItemTax = (CartItemTax) iteratorCartItemTax.next();
OrderTax orderTax = new OrderTax();
orderTax.setName(cartItemTax.getTax().getName());
orderTax.setPercent(cartItemTax.getTax().getPercent());
orderTax.setAmount(cartItemTax.getTaxAmount());
orderItem.getOrderTaxes().add(orderTax);
}
}
orderItems.add(orderItem);