public DeviceIdentityComponent copy(Device e) { DeviceIdentityComponent dst = e.new DeviceIdentityComponent(); dst.gtin = gtin == null ? null : gtin.copy(); dst.lot = lot == null ? null : lot.copy(); dst.serialNumber = serialNumber == null ? null : serialNumber.copy(); return dst; }