}
BufferedWriter bufWriter = new BufferedWriter(new FileWriter(new File(file)));
XmlChangeWriter writer = new XmlChangeWriter(bufWriter);
while (entries.hasNext()) {
ChangeContainer change = entries.next();
writer.process(change);
}
writer.complete();
bufWriter.flush();
}