resourceStats.putIfAbsent(resourceId, new AtomicLong(0));
resourceStats.get(resourceId).incrementAndGet();
final StubResponse stubResponse = matchedLifecycle.getResponse(true);
if (matchedLifecycle.isRestricted() && matchedLifecycle.hasNotAuthorized(assertingLifecycle)) {
return new UnauthorizedStubResponse();
}
if (stubResponse.hasHeaderLocation()) {
return RedirectStubResponse.newRedirectStubResponse(stubResponse);
}