@RequestMapping(value = "/query/{queryId}/stop", method = RequestMethod.PUT) @ResponseBody public void stopQuery(@PathVariable String queryId) { final String user = SecurityContextHolder.getContext().getAuthentication().getName(); logger.info("{} tries to stop the query: {}, but not guaranteed to succeed.", user, queryId); QueryContextFacade.stopQuery(queryId, "stopped by " + user); }