NetGraph to = new NetGraph();
for (NetTopology netTopologyA : netGraph.getNetTopologies()) {
NetTopology netTopologyB = new NetTopology();
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();