public List getInetAddresses(VMNetDevice netDevice) {
public List<InetAddress> getInetAddresses(VMNetDevice netDevice) {
    public List getInetAddresses(VMNetDevice netDevice) {        final ArrayList<InetAddress> list = new ArrayList<InetAddress>();        final SecurityManager sm = System.getSecurityManager();        try {            final NetDeviceImpl netDeviceImpl = (NetDeviceImpl) netDevice;            final NetDeviceAPI api = (NetDeviceAPI) netDeviceImpl.getDevice()                    .getAPI(NetDeviceAPI.class);            final ProtocolAddressInfo info = api                    .getProtocolAddressInfo(EthernetConstants.ETH_P_IP);            for (ProtocolAddress ipaddr : info.addresses()) {                if (sm != null) {                    try {                        sm.checkConnect(ipaddr.toString(), 58000);                        list.add(ipaddr.toInetAddress());                    } catch (SecurityException ex) {                        // Just don't add                    }                } else {                    list.add(ipaddr.toInetAddress());                }            }        } catch (ApiNotFoundException ex) {            // Ignore        }        return list;    }