public static void swapInNewNetworks(List oldNets, List newNets) {
    { PropositionNeuralNetwork oldNet = null;
      Cons iter000 = oldNets.theConsList;
      PropositionNeuralNetwork newNet = null;
      Cons iter001 = newNets.theConsList;

      for (;(!(iter000 == Stella.NIL)) &&
                (!(iter001 == Stella.NIL)); iter000 = iter000.rest, iter001 = iter001.rest) {
        oldNet = ((PropositionNeuralNetwork)(iter000.value));
        newNet = ((PropositionNeuralNetwork)(iter001.value));
        KeyValueList.setDynamicSlotValue(oldNet.proposition.dynamicSlots, Logic.SYM_LOGIC_NEURAL_NETWORK, newNet, null);
        newNet.proposition = oldNet.proposition;
      }
    }
    Logic.$MASTER_NEURAL_NETWORK_LIST$ = newNets;
  }