Random rnd = new Random();
if (mobiles.isEmpty()) {
List<PeerNAT> relayCopy = new ArrayList<PeerNAT>(relays);
while (!relayCopy.isEmpty()) {
PeerNAT relay = relayCopy.remove(rnd.nextInt(relayCopy.size()));
Set<PeerAddress> unreachablePeers = relay.relayRPC().unreachablePeers();
Iterator<PeerAddress> iterator = unreachablePeers.iterator();
if (iterator.hasNext()) {
return iterator.next();
}
}