Program: 23873
Project: 23873
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Conformance convertConformance(org.hl7.fhir.dstu3.model.Conformance src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Conformance tgt=new org.hl7.fhir.dstu2016may.model.Conformance();
  copyDomainResource(src,tgt);
  tgt.setUrl(src.getUrl());
  tgt.setVersion(src.getVersion());
  tgt.setName(src.getName());
  tgt.setStatus(convertConformanceResourceStatus(src.getStatus()));
  tgt.setExperimental(src.getExperimental());
  tgt.setDate(src.getDate());
  tgt.setPublisher(src.getPublisher());
  for (  org.hl7.fhir.dstu3.model.Conformance.ConformanceContactComponent t : src.getContact())   tgt.addContact(convertConformanceContactComponent(t));
  tgt.setDescription(src.getDescription());
  for (  org.hl7.fhir.dstu3.model.CodeableConcept t : src.getUseContext())   tgt.addUseContext(convertCodeableConcept(t));
  tgt.setRequirements(src.getRequirements());
  tgt.setCopyright(src.getCopyright());
  tgt.setKind(convertConformanceStatementKind(src.getKind()));
  tgt.setSoftware(convertConformanceSoftwareComponent(src.getSoftware()));
  tgt.setImplementation(convertConformanceImplementationComponent(src.getImplementation()));
  tgt.setFhirVersion(src.getFhirVersion());
  tgt.setAcceptUnknown(convertUnknownContentCode(src.getAcceptUnknown()));
  for (  org.hl7.fhir.dstu3.model.CodeType t : src.getFormat())   tgt.addFormat(t.getValue());
  for (  org.hl7.fhir.dstu3.model.Reference t : src.getProfile())   tgt.addProfile(convertReference(t));
  for (  org.hl7.fhir.dstu3.model.Conformance.ConformanceRestComponent t : src.getRest())   tgt.addRest(convertConformanceRestComponent(t));
  for (  org.hl7.fhir.dstu3.model.Conformance.ConformanceMessagingComponent t : src.getMessaging())   tgt.addMessaging(convertConformanceMessagingComponent(t));
  for (  org.hl7.fhir.dstu3.model.Conformance.ConformanceDocumentComponent t : src.getDocument())   tgt.addDocument(convertConformanceDocumentComponent(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Conformance convertConformance(org.hl7.fhir.dstu3.model.Conformance src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Conformance tgt=new org.hl7.fhir.dstu2016may.model.Conformance();
  copyDomainResource(src,tgt);
  tgt.setUrl(src.getUrl());
  tgt.setVersion(src.getVersion());
  tgt.setName(src.getName());
  tgt.setStatus(convertConformanceResourceStatus(src.getStatus()));
  tgt.setExperimental(src.getExperimental());
  tgt.setDate(src.getDate());
  tgt.setPublisher(src.getPublisher());
  for (  org.hl7.fhir.dstu3.model.Conformance.ConformanceContactComponent t : src.getContact())   tgt.addContact(convertConformanceContactComponent(t));
  tgt.setDescription(src.getDescription());
  for (  org.hl7.fhir.dstu3.model.CodeableConcept t : src.getUseContext())   tgt.addUseContext(convertCodeableConcept(t));
  tgt.setRequirements(src.getRequirements());
  tgt.setCopyright(src.getCopyright());
  tgt.setKind(convertConformanceStatementKind(src.getKind()));
  tgt.setSoftware(convertConformanceSoftwareComponent(src.getSoftware()));
  tgt.setImplementation(convertConformanceImplementationComponent(src.getImplementation()));
  tgt.setFhirVersion(src.getFhirVersion());
  tgt.setAcceptUnknown(convertUnknownContentCode(src.getAcceptUnknown()));
  for (  org.hl7.fhir.dstu3.model.CodeType t : src.getFormat())   tgt.addFormat(t.getValue());
  for (  org.hl7.fhir.dstu3.model.Reference t : src.getProfile())   tgt.addProfile(convertReference(t));
  for (  org.hl7.fhir.dstu3.model.Conformance.ConformanceRestComponent t : src.getRest())   tgt.addRest(convertConformanceRestComponent(t));
  for (  org.hl7.fhir.dstu3.model.Conformance.ConformanceMessagingComponent t : src.getMessaging())   tgt.addMessaging(convertConformanceMessagingComponent(t));
  for (  org.hl7.fhir.dstu3.model.Conformance.ConformanceDocumentComponent t : src.getDocument())   tgt.addDocument(convertConformanceDocumentComponent(t));
  return tgt;
}