@RequestMapping(value = "/history", method = RequestMethod.GET) public void getHistory( final HttpServletResponse httpServletResponse, @RequestParam(value = "index", defaultValue = "0") int index, @RequestParam(value = "count", defaultValue = "${jahspotify.history.default-count}") int count) { final Collection<TrackHistory> history = _historicalStorage.getHistory(index, count, null); httpServletResponse.setContentType("application/json"); serializeHistoryCursor(history, httpServletResponse); }