@Autowired
private TodoService todoService;
@Autowired
private TodoQueryServiceImpl todoQueryServiceImpl;
@RequestMapping(method = POST)
<BUG>public Observable<ResourceWithUrl> saveTodo(@RequestBody TodoInfo todo, HttpServletRequest request) {
</BUG>
Assert.notNull(todo.getTitle());
<BUG>return todoService.save(todo).map(e -> withRequestAttributeContext(request, () -> toResource(e.entity().getTodo(), e.getEntityIdentifier().getId())));
</BUG>
}

@Autowired
private TodoService todoService;
@Autowired
private TodoQueryServiceImpl todoQueryServiceImpl;
@RequestMapping(method = POST)
public CompletableFuture<ResourceWithUrl> saveTodo(@RequestBody TodoInfo todo, HttpServletRequest request) {
Assert.notNull(todo.getTitle());
return todoService.save(todo).thenApply(e -> withRequestAttributeContext(request, () -> toResource(e.getAggregate().getTodo(), e.getEntityId())));
}
