</BUG>
@RequestMapping(method = RequestMethod.POST)
public ResponseEntity<Void> makeOrder(@RequestBody Product product) {
OrderModel orderModel = orderBackend.createOrder();
orderModel = orderBackend.addOrderedItem(orderModel.getId(),
<BUG>new ProductModel(product.name, product.getProductID()));
</BUG>
AffordanceBuilder location = linkTo(methodOn(this.getClass()).getOrder(orderModel.getId()));
HttpHeaders headers = new HttpHeaders();
headers.setLocation(location.toUri());

public class OrderController {
@Autowired
private OrderBackend orderBackend;
@Autowired
private OrderAssembler orderAssembler;
@ResourceHandler(Cardinality.COLLECTION)
@RequestMapping(method = RequestMethod.POST)
public ResponseEntity<Void> makeOrder(@RequestBody Product product) {
OrderModel orderModel = orderBackend.createOrder();
orderModel = orderBackend.addOrderedItem(orderModel.getId(),
new ProductModel(product.name, product.productID));
AffordanceBuilder location = linkTo(methodOn(this.getClass()).getOrder(orderModel.getId()));
HttpHeaders headers = new HttpHeaders();
headers.setLocation(location.toUri());
