output_ = file_.openNewVersionForWriting();
final DataByteArrayOutputStream dataByteArrayOutputStream = new DataByteArrayOutputStream();
while (elements != null && elements.hasMoreElements()) {
DataSerializable next = (DataSerializable) elements.nextElement();
dataByteArrayOutputStream.restart();
next.writeData(dataByteArrayOutputStream);
output_.write(dataByteArrayOutputStream.getContent());
}
output_.getFD().sync();
// NOTE: we do NOT close the object output, since the client