public MedicationPackageComponent copy(Medication e) { MedicationPackageComponent dst = new MedicationPackageComponent(); dst.container = container == null ? null : container.copy(); dst.content = new ArrayList<MedicationPackageContentComponent>(); for (MedicationPackageContentComponent i : content) dst.content.add(i.copy(e)); return dst; }