@RequestMapping(method = RequestMethod.POST, value = "/{gameId}/doors/{doorId}", consumes = MediaType.APPLICATION_JSON_VALUE, produces = {
MediaType.APPLICATION_JSON_VALUE, MediaType.TEXT_XML_VALUE })
ResponseEntity<Void> modifyDoor(@PathVariable Long gameId, @PathVariable Long doorId, @RequestBody Map<String, String> body)
throws MissingKeyException, GameDoesNotExistException, IllegalTransitionException, DoorDoesNotExistException {
DoorStatus status = getStatus(body);
Game game = this.gameRepository.retrieve(gameId);
if (DoorStatus.SELECTED == status) {
game.select(doorId);
} else if (DoorStatus.OPEN == status) {