this.objectMapper = objectMapper;
// we don't inject it, we don't want during tests to use the playback version, it could perturb
// tests since the number of calls to the generation depends on the presence of machine id
// in the file system, which may vary from one test to another
this.uuidGenerator = new DefaultUUIDGenerator();
// load settings in private fields
// this avoid accessing the settings through the underlying config object
storageEnabled = statsSettings.storageEnable();
storageStatsDir = new File(statsSettings.storageDir().or(System.getProperty("user.home") + "/.restx/stats"));