184185186187188189190
/** * Sets order status to New and persists it. */ private void acceptOrder(Order order) { order.accept(orderRepository); orderEventPublisher.publish(new OrderAccepted(order)); }