ip.setHostname(nic.getHostname());
ip.setIpAddress(nic.getIpAddress());
ip.setNetmask(nic.getNetmask());
ip.setNetwork(nic.getNetwork());
final IPConfig_TypeAcquisitionMethod method =
(IPConfig_TypeAcquisitionMethod)
acqMethodMap.get(nic.getAcquisitionMethod());
if (method == null) {
throw new CannotTranslateException(
"do not recognize acquisition method '" +