for (Iterator<Sample> iterator = listSampleConfiguration.iterator(); iterator.hasNext();) {
Sample sample = (Sample) iterator.next();
// We substract 1 to make the rackNumber match the rackNumber of the
// rackTabbedPane.
int rackNumber = sample.getRackNumber() - 1;
Rack rack = model.get(rackNumber);
rack.addSample(sample);
}
}