resp = new ExceptionResponse(new CacheException("Problems invoking command.", throwable));
}
//the ResponseGenerated is null in this case because the return value is a Response
reply(response, resp);
if (resp instanceof ExceptionResponse) {
totalOrderManager.release(state);
}
afterResponseSent(cmd, resp);
}
});
} else {