final List<OrderTaxViewBean> orderTaxViewBeans = new ArrayList<OrderTaxViewBean>();
final Set<OrderTax> orderTaxes = order.getOrderTaxes();
if (Hibernate.isInitialized(orderTaxes) && orderTaxes != null) {
for (Iterator<OrderTax> iterator = orderTaxes.iterator(); iterator.hasNext();) {
final OrderTax orderTax = (OrderTax) iterator.next();
final OrderTaxViewBean orderTaxViewBean = new OrderTaxViewBean();
Object[] params = { orderTax.getAmount() };
orderTaxViewBean.setOrderTaxTotal(order.getCurrency().formatPriceWithStandardCurrencySign(orderTax.getAmount()));
orderTaxViewBean.setOrderTaxTotalLabel(getSpecificMessage(ScopeWebMessage.COMMON, "shoppingcart.amount.taxes", params, locale));
orderTaxViewBeans.add(orderTaxViewBean);
}
orderViewBean.setOrderTaxes(orderTaxViewBeans);
}
orderViewBean.setOrderItemsTotalWithCurrencySign(order.getOrderItemTotalWithStandardCurrencySign());