final Dpu dpu = new Dpu();
//
final FutureResponse<Stream> response = new FutureResponse<Stream>() {
public void apply(Stream stream) {
URI uri = newParams().put("hash", stream.hash()).forURL(config.newAPIEndpointURI(DPU));
Request request = config.http().GET(uri, new PageReader(newRequestCallback(future, dpu, config)));
performRequest(future, request);
}
};
unwrapFuture(streamFuture, future, dpu, response);
return future;