public Media copy() { Media dst = new Media(); copyValues(dst); dst.type = type == null ? null : type.copy(); dst.subtype = subtype == null ? null : subtype.copy(); if (identifier != null) { dst.identifier = new ArrayList<Identifier>(); for (Identifier i : identifier) dst.identifier.add(i.copy()); } ; dst.subject = subject == null ? null : subject.copy(); dst.operator = operator == null ? null : operator.copy(); dst.view = view == null ? null : view.copy(); dst.deviceName = deviceName == null ? null : deviceName.copy(); dst.height = height == null ? null : height.copy(); dst.width = width == null ? null : width.copy(); dst.frames = frames == null ? null : frames.copy(); dst.duration = duration == null ? null : duration.copy(); dst.content = content == null ? null : content.copy(); return dst; }