public static void addNetworkConnectedVarrays(Network network,Set<String> varraysToAdd,boolean cascade,DbClient dbClient){
  _log.info("Adding implicit connected virtual arrays {} for network {}",network.getId(),varraysToAdd);
  network.addConnectedVirtualArrays(varraysToAdd);
  dbClient.updateAndReindexObject(network);
  if (cascade) {
    List<Network> routedNetworks=getNetworkRoutedNetworksForUpdate(network,dbClient);
    for (    Network net : routedNetworks) {
      _log.info("Adding implicit connected virtual arrays {} for routed network {}",net.getId(),varraysToAdd);
      net.addConnectedVirtualArrays(varraysToAdd);
    }
    dbClient.updateAndReindexObject(routedNetworks);
  }
}

public static void addNetworkConnectedVarrays ( Network network , Set < String > varraysToAdd , boolean cascade , DbClient dbClient ) { _log . info ( "Adding implicit connected virtual arrays {} for network {}" , network . getId ( ) , varraysToAdd ) ; network . addConnectedVirtualArrays ( varraysToAdd ) ; dbClient . updateAndReindexObject ( network ) ; if ( cascade ) { List < Network > routedNetworks = getNetworkRoutedNetworksForUpdate ( network , dbClient ) ; for ( Network net : routedNetworks ) { _log . info ( "Adding implicit connected virtual arrays {} for routed network {}" , net . getId ( ) , varraysToAdd ) ; net . addConnectedVirtualArrays ( varraysToAdd ) ; } dbClient . updateAndReindexObject ( routedNetworks ) ; } }
add a list of virtual arrays to a network connected virtual array . optionally cascade this update to the network ' s routed virtual arrays
