Add the order to the map _after_ placeOrder() has been called. placeOrder() might update the order's id.