newPart = new LiveOutput();
} else if (oldPart instanceof LogicLabel) {
newPart = new LogicLabel();
((LogicLabel)newPart).setLabelContents(((LogicLabel)oldPart).getLabelContents());
} else if (oldPart instanceof OrGate) {
newPart = new OrGate();
} else if (oldPart instanceof LogicFlowContainer) {
newPart = new LogicFlowContainer();
} else if (oldPart instanceof XORGate) {
newPart = new XORGate();
}