private StubResponse identifyStubResponseType(final StubHttpLifecycle assertingLifecycle) {
final StubHttpLifecycle matchedLifecycle = getMatchedStubHttpLifecycle(assertingLifecycle);
if (matchedLifecycle == StubHttpLifecycle.NOT_FOUND) {
return new NotFoundStubResponse();
}
final StubResponse stubResponse = matchedLifecycle.getResponse();
if (matchedLifecycle.isRestricted() && matchedLifecycle.hasNotAuthorized(assertingLifecycle)) {
return new UnauthorizedStubResponse();