+ while (netInterfaces.hasMoreElements()) {
+ // TODO find out public/physical interfaces
+ nic = netInterfaces.nextElement();
+ if (nic.getHardwareAddress() != null)
+ return hardwareAddressToNodeId(nic);
+ }
+ throw new IllegalStateException("No interfaces with a MAC address");