for (Anchor anchorA : netTopologyA.getAnchors()) {
Anchor anchorB = new Anchor();
anchorB.setName(anchorA.getName());
anchorB.setX(anchorA.getX());
anchorB.setY(anchorA.getY());
netTopologyB.addAnchor(anchorB);
}
for (Switch switchA : netTopologyA.getSwitchs()) {
Switch switchB = new Switch();
switchB.setName(switchA.getName());