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