* @return
* @throws Exception
*/
@RequestMapping("/detail/{todoId}")
public ModelAndView detail(@PathVariable("todoId") long todoId, HttpServletRequest request, HttpServletResponse response) throws Exception {
Person currentUser = accountService.getPerson(request);
notificationService.markAsRead(currentUser, todoId);
Map<String, Object> model = Maps.newHashMap();
JsonArray array = new JsonArray();
if (currentUser != null) {
List<ToDo> todos = currentUser.getTodoItems();
for (ToDo todo : todos) {
JsonObject t = jsonService.convertToJson(todo);
if (todo.getId() == todoId) {
t.addProperty("display", true);
}