Switching between arduinos through processing

I have 2 arduino’s in different locations, each has a sensor attached and each is sending the sensor data out via an XBee module to a PC (attached to an XBee module).

At the moment I’m only reading thae data from the one sensor using:

import cc.arduino.*;  //Import arduino library
import processing.serial.*;  //Import serial library

Arduino arduino;  // Name arduino
void setup()
{
  size(700, 700);  // Set display screen size
  println(Arduino.list());  // List serial ports available to arduino
  //Select serial port attached to arduino
  arduino = new Arduino(this, Arduino.list()[1], 9600);
}
void draw()
{
  int temprx = 0;  // Variable to store data from arduino
  temprx = arduino.analogRead(temp); // Read data from temp   sensor  
  //println(temprx);  // CHECK: Print raw data to screen
}

I now want switch to the other sensor and so I was going to re-configure the XBee connected to the PC to switch to the XBee of sensor 2 using

void xset()
{
  println(Serial.list());
  port = new Serial(this, Serial.list()[1], 9600);
  int inByte = 0;
  port.write("+++");
  delay(1100);
  while (inByte != '\r')
  {
    if (port.available() >0)
    {
      inByte = port.read();
      println (inByte);
    }
  }
  port.write("ATDL5678\r");
  port.write("ATMY1234\r"); 
  port.write("ATWR\r"); 
  port.write("ATCN\r");
}

Unfortunately I cannot do this as the serial port is occupied due to the

println(Arduino.list());  // List serial ports available to arduino
  //Select serial port attached to arduino
  arduino = new Arduino(this, Arduino.list()[1], 9600);

Is there away to switch this off to free up the serial port to do the re-config of XBee