What's the best way to find the total tax for an Order?
It seems like you could find it from subtracting each line item's price from the order total, but that seems messy. Is there a cleaner way?
long getTaxTotal(Order order) { long subTotal = 0; for (LineItem lineItem : order.getLineItems()) { subTotal += lineItem.getPrice() } return order.getTotal() - subTotal; }