Probeable target = oldProbe.getTarget();
if (target instanceof Node) {
Node oldNode = (Node) target;
if (oldProbe.isInEnsemble()) {
try {
Ensemble oldEnsemble = (Ensemble) getNode(oldProbe.getEnsembleName());
int neuronIndex = -1;
for (int j = 0; j < oldEnsemble.getNodes().length && neuronIndex < 0; j++) {
if (oldNode == oldEnsemble.getNodes()[j]) {
neuronIndex = j;
}
}
result.mySimulator.addProbe(oldProbe.getEnsembleName(), neuronIndex, oldProbe.getStateName(), true);
} catch (SimulationException e) {