private Optional<? extends FullHttpResponse> onRequestIntercepted() throws IOException {
if (tape == null) {
return Optional.of(new DefaultFullHttpResponse(HTTP_1_1, new HttpResponseStatus(403, "No tape")));
} else if (tape.isReadable() && tape.seek(request)) {
LOG.warning(String.format("Playing back from tape %s", tape.getName()));
Response recordedResponse = tape.play(request);
FullHttpResponse response = playRecordedResponse(recordedResponse);
setViaHeader(response);
setBetamaxHeader(response, "PLAY");
return Optional.of(response);
} else {