// Finally, generate model objects for everything
// Notes first
_notes = new Notes[notesRecords.length];
for (int i = 0; i < _notes.length; i++) {
if (notesRecords[i] != null) {
_notes[i] = new Notes(notesRecords[i]);
_notes[i].setSlideShow(this);
}
}
// Then slides
_slides = new Slide[slidesRecords.length];
for (int i = 0; i < _slides.length; i++) {
SlideAtomsSet sas = slidesSets[i];
int slideIdentifier = sas.getSlidePersistAtom().getSlideIdentifier();
// Do we have a notes for this?
Notes notes = null;
// Slide.SlideAtom.notesId references the corresponding notes slide.
// 0 if slide has no notes.
int noteId = slidesRecords[i].getSlideAtom().getNotesID();
if (noteId != 0) {
Integer notesPos = slideIdToNotes.get(noteId);