public Todo findOne(String todoId) { Todo todo = todoRepository.findOne(todoId); if (todo == null) { throw new TodoNotFoundException(todoId); } return todo; }