protected void addTotals(final AbstractOrderModel source, final AbstractOrderData prototype) { prototype.setTotalPrice(createPrice(source, source.getTotalPrice())); prototype.setTotalTax(createPrice(source, source.getTotalTax())); prototype.setSubTotal(createPrice(source, source.getSubtotal())); prototype.setDeliveryCost( source.getDeliveryMode() != null ? createPrice(source, source.getDeliveryCost()) : null); prototype.setTotalPriceWithTax((createPrice(source, calcTotalWithTax(source)))); }