CompletableFuture<CompletableFuture<Double>> result = getUserDetail(userId) .thenApply(user -> getCreditRating(user));