public SpecimenContainerComponent copy(Specimen e) { SpecimenContainerComponent dst = e.new SpecimenContainerComponent(); dst.identifier = new ArrayList<Identifier>(); for (Identifier i : identifier) dst.identifier.add(i.copy()); dst.description = description == null ? null : description.copy(); dst.type = type == null ? null : type.copy(); dst.capacity = capacity == null ? null : capacity.copy(); dst.specimenQuantity = specimenQuantity == null ? null : specimenQuantity.copy(); dst.additive = additive == null ? null : additive.copy(); return dst; }