class DemandResponseController {

	@RequestMapping(value = "/{id}/venResponse", method = RequestMethod.GET)
	@ResponseBody
	public List<VenDemandResponseEventDto> readVenDemandResponseEvent(@PathVariable(value = "id") Long id,
			HttpServletResponse response) {

		try {
			List<VenDemandResponseEvent> venDemandResponseEvent = demandResponseEventService
					.getVenDemandResponseEvent(id);

			return dtoMapper.mapList(venDemandResponseEvent, VenDemandResponseEventDto.class);

		} catch (OadrElementNotFoundException e) {
			response.setStatus(HttpStatus.NOT_FOUND_404);
			return null;
		}

	}

}