private CompletableFuture<HttpResponse> serveAsync(ServiceRequestContext ctx, AggregatedHttpRequest req) {
        final CompletableFuture<HttpResponse> responseFuture = new CompletableFuture<>();
        final ResteasyHttpResponseImpl resteasyResponse =
                new ResteasyHttpResponseImpl(responseFuture, responseBufferSize);
        final ResteasyUriInfo uriInfo = createResteasyUriInfo(req.uri(), contextPath);
        final AbstractResteasyHttpRequest<?> resteasyRequest =
                new AggregatedResteasyHttpRequestImpl(ctx, req, resteasyResponse, uriInfo, dispatcher);
        serveAsync(ctx, resteasyRequest, resteasyResponse);
        return responseFuture;
    }
Registers {@link ResteasyService} with Armeria {@link ServerBuilder}.
resteasy/src/main/java/com/linecorp/armeria/server/resteasy/ResteasyService.java