in src/main/java/org/apache/sling/commons/metrics/rrd4j/impl/RRD4JReporter.java [346:358]
private void storeDictionary(String path) throws IOException {
File dictFile = new File(path);
if (dictFile.exists() && ! dictFile.delete()) {
throw new IOException("Unable to delete dictionary file: " + dictFile.getPath());
}
Properties dict = new Properties();
for (Map.Entry<String, Integer> entry : dictionary.entrySet()) {
dict.put(String.valueOf(entry.getValue()), entry.getKey());
}
try (FileOutputStream out = new FileOutputStream(dictFile)) {
dict.store(out, "RRD4JReporter dictionary");
}
}