Integer index = orderedIndex.get();
RecordedInteraction interaction = interactions.get(index);
RecordedRequest nextRequest = interaction == null ? null : interaction.getRequest();
return nextRequest != null && matchRule.isMatch(request, nextRequest);
} catch (IndexOutOfBoundsException e) {
throw new NonWritableTapeException();
}
} else {
return findMatch(request) >= 0;
}
}