final List<OrderShippingViewBean> orderShippingViewBeans = new ArrayList<OrderShippingViewBean>();
final Set<OrderShipment> orderShipments = order.getOrderShipments();
if (Hibernate.isInitialized(orderShipments) && orderShipments != null) {
for (Iterator<OrderShipment> iterator = orderShipments.iterator(); iterator.hasNext();) {
final OrderShipment orderShipment = (OrderShipment) iterator.next();
final OrderShippingViewBean orderShippingViewBean = new OrderShippingViewBean();
Object[] params = { orderShipment.getName() };
orderShippingViewBean.setOrderShippingTotalLabel(getSpecificMessage(ScopeWebMessage.COMMON, "shoppingcart.amount.deliveryMethods", params, locale));
orderShippingViewBeans.add(orderShippingViewBean);
}
orderViewBean.setOrderShippings(orderShippingViewBeans);
}