return null;
}
@Transactional(propagation = Propagation.REQUIRED)
public NetworkDeviceBean updateDevice(NetworkDeviceBean ndb, SystemDomain system) {
NetworkDeviceDomain ndd = manager.find(NetworkDeviceDomain.class, ndb.getMacAddress());
if (ndd == null) {
ndd = new NetworkDeviceDomain(ndb, system);
} else {
ndd.updateFrom(ndb);
}
manager.persist(ndd);
return convert(ndd);
}