class DemandResponseController {

	@RequestMapping(value = "/{id}", method = RequestMethod.GET)
	@ResponseBody
	public DemandResponseEventReadDto read(@PathVariable(value = "id") Long id, HttpServletResponse response) {
		Optional<DemandResponseEvent> op = demandResponseEventService.findById(id);
		if (!op.isPresent()) {
			response.setStatus(HttpStatus.NOT_FOUND_404);
			return null;
		}
		DemandResponseEvent event = op.get();
		LOGGER.info("read DR event: " + event.toString());
		return dtoMapper.map(event, DemandResponseEventReadDto.class);

	}

}