ArrayList tracks=currentSpot.getTracks();
ArrayList excitations=currentSpot.getExcitations();
// Tracks first!
for (int k=0; k<tracks.size();k++) {
Track currentTrack = (Track)tracks.get(k);
RecordModel trackNode = recordModelFactory.createRecordModel("Track"); //$NON-NLS-1$
trackNode.setValue("id", currentTrack.getId(), false); //$NON-NLS-1$
trackNode.setValue("name", currentTrack.getName(), false); //$NON-NLS-1$
spotNode.addChild("Track", trackNode, false); //$NON-NLS-1$
}
// Excitations!
for (int k=0; k<excitations.size(); k++) {
Excitation currentExcitation = (Excitation)excitations.get(k);