handleReplayRedirect(wbRequest, httpResponse, captureResults, closest);
}
p.retrieved();
ReplayRenderer renderer =
getReplay().getRenderer(wbRequest, closest, httpHeadersResource, payloadResource);
if (this.isEnableWarcFileHeader() && (warcFileHeader != null)) {
if (isRevisit && (closest.getDuplicatePayloadFile() != null)) {
httpResponse.addHeader(warcFileHeader, closest.getDuplicatePayloadFile());
} else {
httpResponse.addHeader(warcFileHeader, closest.getFile());
}
}
// Memento URL-M response
if (this.isEnableMemento()) {
MementoUtils.addMementoHeaders(httpResponse, captureResults, closest, wbRequest);
}
renderer.renderResource(httpRequest, httpResponse, wbRequest,
closest, httpHeadersResource, payloadResource, getUriConverter(), captureResults);
p.rendered();
p.write(wbRequest.getReplayTimestamp() + " " +
wbRequest.getRequestUrl());