ContentChange (RootEntry root, String path, String content, long timestamp) { Entry e = root.getEntry(path); ContentChange result = new ContentChange(nextId(), path, e.getContent(), e.getTimestamp()); e.setContent(c(content), timestamp); return result; }