public void cancelOrder(Order order) {
   for (LineItem lineItem : order.getLineItems()) {
     addProduct(order, lineItem.getProduct(), lineItem.getQuantity());
   }
   order.cancel();
 }
 public void place(Order order) {
   order.place();
   orderRepository.update(order);
 }
 public void removeProduct(Order order, Product product, int quantity) {
   inventory.addProduct(product, quantity);
   order.removeItem(product, quantity);
 }