// split
Collection<Circuit> modified = mutator.getModifiedCircuits();
for (Circuit circuit : modified) {
CircuitMutatorImpl circMutator = circuit.getLocker().getMutator();
if (circMutator == mutator) {
CircuitPins pins = circuit.getAppearance().getCircuitPins();
ReplacementMap repl = mutator.getReplacementMap(circuit);
if (repl != null) {
pins.transactionCompleted(repl);
}
}
}
// Now go through each affected circuit and repair its wires