Stream promisedStream = new Stream();
this.http2EngineImpl.initializeFlowControl(newStreamId);
promisedStream.setStreamId(newStreamId);
this.http2EngineImpl.activeStreams.put(newStreamId, promisedStream);
promisedStream.setResponseListener(stream.getResponseListener());
<BUG>HttpRequest request = this.http2EngineImpl.requestFromHeaders(frame.getHeaderList(), promisedStream);
</BUG>
promisedStream.setRequest(request);
promisedStream.setStatus(Stream.StreamStatus.RESERVED_REMOTE);
} else {

Stream promisedStream = new Stream();
this.http2EngineImpl.initializeFlowControl(newStreamId);
promisedStream.setStreamId(newStreamId);
this.http2EngineImpl.activeStreams.put(newStreamId, promisedStream);
promisedStream.setResponseListener(stream.getResponseListener());
HttpRequest request = this.http2EngineImpl.requestFromHeaders(new LinkedList<>(frame.getHeaderList()), promisedStream);
promisedStream.setRequest(request);
promisedStream.setStatus(Stream.StreamStatus.RESERVED_REMOTE);
} else {
