private void writeSegmentsTo(Persistor media) {
SegmentPersistor writer = new SegmentPersistor();
Persistor segmentRoot = media.createChild("Segments");
for (Segment s : segmentList) {
writer.save(s, segmentRoot.createChild("Segment"));
}
}
@Override
public void restoreFrom(Persistor media) {