in src/main/java/org/apache/sling/commons/metrics/rrd4j/impl/RRD4JReporter.java [410:417]
private static void rename(Path path, String newName) throws IOException {
if (!Files.exists(path)) {
// nothing to rename
return;
}
Path target = path.resolveSibling(newName);
Files.move(path, target, REPLACE_EXISTING);
}