private void mergeNetworks(Network tzone,Network sZone){
  List<String> addedEndPoints=new ArrayList<String>(sZone.retrieveEndpoints());
  StringSet newEndPoints=sZone.retrieveEndpoints();
  for (  String endpoint : tzone.retrieveEndpoints()) {
    if (newEndPoints.contains(endpoint)) {
      addedEndPoints.remove(endpoint);
    }
  }
  if (!addedEndPoints.isEmpty()) {
    tzone.addEndpoints(addedEndPoints,true);
  }
  tzone.setNativeGuid(sZone.getNativeGuid());
}

private void mergeNetworks ( Network tzone , Network sZone ) { List < String > addedEndPoints = new ArrayList < String > ( sZone . retrieveEndpoints ( ) ) ; StringSet newEndPoints = sZone . retrieveEndpoints ( ) ; for ( String endpoint : tzone . retrieveEndpoints ( ) ) { if ( newEndPoints . contains ( endpoint ) ) { addedEndPoints . remove ( endpoint ) ; } } if ( ! addedEndPoints . isEmpty ( ) ) { tzone . addEndpoints ( addedEndPoints , true ) ; } tzone . setNativeGuid ( sZone . getNativeGuid ( ) ) ; }
update one network with information from another
