Map<?, ?> oldMapTrackUsage = FileUtil.readResilientFile(f);
String version = MapUtils.getMapString(oldMapTrackUsage, "version",
null);
Map<?, ?> map = MapUtils.getMapMap(oldMapTrackUsage, "statsmap", null);
if (version != null && map != null) {
PlatformConfigMessenger.sendUsageStats(map, f.lastModified(),
version, null);
}
}
SimpleTimer.addPeriodicEvent("UsageTracker", 1000,