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);
RecordModel excitationNode = recordModelFactory.createRecordModel("Excitation"); //$NON-NLS-1$
RecordModel laserNode = recordModelFactory.createRecordModel("Laser"); //$NON-NLS-1$
RecordModel excitationMeasurementNode = recordModelFactory.createRecordModel("Excitation_Measurement"); //$NON-NLS-1$
excitationMeasurementNode.setValue("unit", "nM", false); //$NON-NLS-1$ //$NON-NLS-2$
excitationMeasurementNode.setValue("value", Double.toString(currentExcitation.getPower()), false); //$NON-NLS-1$
excitationMeasurementNode.updateDisplayName();
laserNode.addChild("Excitation_Measurement", excitationMeasurementNode, false); //$NON-NLS-1$
laserNode.setValue("id", currentExcitation.getLaser(),false); //$NON-NLS-1$
laserNode.updateDisplayName();
excitationNode.addChild("Excitation_choices", laserNode, false); //$NON-NLS-1$
excitationNode.updateDisplayName();
spotNode.addChild("Excitation", excitationNode, false); //$NON-NLS-1$
spotNode.updateDisplayName();