Using Xbee java library to discover network devices, finding two end devices fails, only works with 1

I’m trying to use the XBeeTransmitData example to discover two end devices in java, unfortunatly it only finds one if i disconnect the other of the two devices. Regardless of which one i disconnect it sucessfully finds the other as soon as this is done. I’m using XBee S1 series and was just wondering if someone could shed some light on the topic. Within X-CTU i can find both end devices through the coordinator but within java there seems to be an issue. Any help would be much appreciated

XCTU uses the ND command. Do you know which command you are using in the Java app?