Program: 24132
Project: 24132
Buggy source:
@Override protected void composeResource(Resource resource) throws Exception {
  if (resource instanceof AdverseReaction)   composeAdverseReaction("String_Node_Str",(AdverseReaction)resource);
 else   if (resource instanceof AdverseReactionRisk)   composeAdverseReactionRisk("String_Node_Str",(AdverseReactionRisk)resource);
 else   if (resource instanceof Alert)   composeAlert("String_Node_Str",(Alert)resource);
 else   if (resource instanceof AllergyIntolerance)   composeAllergyIntolerance("String_Node_Str",(AllergyIntolerance)resource);
 else   if (resource instanceof Appointment)   composeAppointment("String_Node_Str",(Appointment)resource);
 else   if (resource instanceof AppointmentResponse)   composeAppointmentResponse("String_Node_Str",(AppointmentResponse)resource);
 else   if (resource instanceof Availability)   composeAvailability("String_Node_Str",(Availability)resource);
 else   if (resource instanceof Basic)   composeBasic("String_Node_Str",(Basic)resource);
 else   if (resource instanceof CarePlan)   composeCarePlan("String_Node_Str",(CarePlan)resource);
 else   if (resource instanceof Composition)   composeComposition("String_Node_Str",(Composition)resource);
 else   if (resource instanceof ConceptMap)   composeConceptMap("String_Node_Str",(ConceptMap)resource);
 else   if (resource instanceof Condition)   composeCondition("String_Node_Str",(Condition)resource);
 else   if (resource instanceof Conformance)   composeConformance("String_Node_Str",(Conformance)resource);
 else   if (resource instanceof Contract)   composeContract("String_Node_Str",(Contract)resource);
 else   if (resource instanceof Contraindication)   composeContraindication("String_Node_Str",(Contraindication)resource);
 else   if (resource instanceof DataElement)   composeDataElement("String_Node_Str",(DataElement)resource);
 else   if (resource instanceof Device)   composeDevice("String_Node_Str",(Device)resource);
 else   if (resource instanceof DeviceObservationReport)   composeDeviceObservationReport("String_Node_Str",(DeviceObservationReport)resource);
 else   if (resource instanceof DiagnosticOrder)   composeDiagnosticOrder("String_Node_Str",(DiagnosticOrder)resource);
 else   if (resource instanceof DiagnosticReport)   composeDiagnosticReport("String_Node_Str",(DiagnosticReport)resource);
 else   if (resource instanceof DocumentManifest)   composeDocumentManifest("String_Node_Str",(DocumentManifest)resource);
 else   if (resource instanceof DocumentReference)   composeDocumentReference("String_Node_Str",(DocumentReference)resource);
 else   if (resource instanceof Encounter)   composeEncounter("String_Node_Str",(Encounter)resource);
 else   if (resource instanceof FamilyHistory)   composeFamilyHistory("String_Node_Str",(FamilyHistory)resource);
 else   if (resource instanceof Group)   composeGroup("String_Node_Str",(Group)resource);
 else   if (resource instanceof HealthcareService)   composeHealthcareService("String_Node_Str",(HealthcareService)resource);
 else   if (resource instanceof ImagingStudy)   composeImagingStudy("String_Node_Str",(ImagingStudy)resource);
 else   if (resource instanceof Immunization)   composeImmunization("String_Node_Str",(Immunization)resource);
 else   if (resource instanceof ImmunizationRecommendation)   composeImmunizationRecommendation("String_Node_Str",(ImmunizationRecommendation)resource);
 else   if (resource instanceof List_)   composeList_("String_Node_Str",(List_)resource);
 else   if (resource instanceof Location)   composeLocation("String_Node_Str",(Location)resource);
 else   if (resource instanceof Media)   composeMedia("String_Node_Str",(Media)resource);
 else   if (resource instanceof Medication)   composeMedication("String_Node_Str",(Medication)resource);
 else   if (resource instanceof MedicationAdministration)   composeMedicationAdministration("String_Node_Str",(MedicationAdministration)resource);
 else   if (resource instanceof MedicationDispense)   composeMedicationDispense("String_Node_Str",(MedicationDispense)resource);
 else   if (resource instanceof MedicationPrescription)   composeMedicationPrescription("String_Node_Str",(MedicationPrescription)resource);
 else   if (resource instanceof MedicationStatement)   composeMedicationStatement("String_Node_Str",(MedicationStatement)resource);
 else   if (resource instanceof MessageHeader)   composeMessageHeader("String_Node_Str",(MessageHeader)resource);
 else   if (resource instanceof Namespace)   composeNamespace("String_Node_Str",(Namespace)resource);
 else   if (resource instanceof NutritionOrder)   composeNutritionOrder("String_Node_Str",(NutritionOrder)resource);
 else   if (resource instanceof Observation)   composeObservation("String_Node_Str",(Observation)resource);
 else   if (resource instanceof OperationDefinition)   composeOperationDefinition("String_Node_Str",(OperationDefinition)resource);
 else   if (resource instanceof OperationOutcome)   composeOperationOutcome("String_Node_Str",(OperationOutcome)resource);
 else   if (resource instanceof Order)   composeOrder("String_Node_Str",(Order)resource);
 else   if (resource instanceof OrderResponse)   composeOrderResponse("String_Node_Str",(OrderResponse)resource);
 else   if (resource instanceof Organization)   composeOrganization("String_Node_Str",(Organization)resource);
 else   if (resource instanceof Other)   composeOther("String_Node_Str",(Other)resource);
 else   if (resource instanceof Patient)   composePatient("String_Node_Str",(Patient)resource);
 else   if (resource instanceof Practitioner)   composePractitioner("String_Node_Str",(Practitioner)resource);
 else   if (resource instanceof Procedure)   composeProcedure("String_Node_Str",(Procedure)resource);
 else   if (resource instanceof Profile)   composeProfile("String_Node_Str",(Profile)resource);
 else   if (resource instanceof Provenance)   composeProvenance("String_Node_Str",(Provenance)resource);
 else   if (resource instanceof Query)   composeQuery("String_Node_Str",(Query)resource);
 else   if (resource instanceof Questionnaire)   composeQuestionnaire("String_Node_Str",(Questionnaire)resource);
 else   if (resource instanceof QuestionnaireAnswers)   composeQuestionnaireAnswers("String_Node_Str",(QuestionnaireAnswers)resource);
 else   if (resource instanceof ReferralRequest)   composeReferralRequest("String_Node_Str",(ReferralRequest)resource);
 else   if (resource instanceof RelatedPerson)   composeRelatedPerson("String_Node_Str",(RelatedPerson)resource);
 else   if (resource instanceof RiskAssessment)   composeRiskAssessment("String_Node_Str",(RiskAssessment)resource);
 else   if (resource instanceof SecurityEvent)   composeSecurityEvent("String_Node_Str",(SecurityEvent)resource);
 else   if (resource instanceof Slot)   composeSlot("String_Node_Str",(Slot)resource);
 else   if (resource instanceof Specimen)   composeSpecimen("String_Node_Str",(Specimen)resource);
 else   if (resource instanceof Subscription)   composeSubscription("String_Node_Str",(Subscription)resource);
 else   if (resource instanceof Substance)   composeSubstance("String_Node_Str",(Substance)resource);
 else   if (resource instanceof Supply)   composeSupply("String_Node_Str",(Supply)resource);
 else   if (resource instanceof ValueSet)   composeValueSet("String_Node_Str",(ValueSet)resource);
 else   if (resource instanceof Binary)   composeBinary("String_Node_Str",(Binary)resource);
 else   throw new Exception("String_Node_Str" + resource.getClass().getName());
}

Fixed version (ground truth):
@Override protected void composeResource(Resource resource) throws Exception {
  if (resource instanceof AdverseReaction)   composeAdverseReaction("String_Node_Str",(AdverseReaction)resource);
 else   if (resource instanceof AdverseReactionRisk)   composeAdverseReactionRisk("String_Node_Str",(AdverseReactionRisk)resource);
 else   if (resource instanceof Alert)   composeAlert("String_Node_Str",(Alert)resource);
 else   if (resource instanceof AllergyIntolerance)   composeAllergyIntolerance("String_Node_Str",(AllergyIntolerance)resource);
 else   if (resource instanceof Appointment)   composeAppointment("String_Node_Str",(Appointment)resource);
 else   if (resource instanceof AppointmentResponse)   composeAppointmentResponse("String_Node_Str",(AppointmentResponse)resource);
 else   if (resource instanceof Availability)   composeAvailability("String_Node_Str",(Availability)resource);
 else   if (resource instanceof Basic)   composeBasic("String_Node_Str",(Basic)resource);
 else   if (resource instanceof CarePlan)   composeCarePlan("String_Node_Str",(CarePlan)resource);
 else   if (resource instanceof Composition)   composeComposition("String_Node_Str",(Composition)resource);
 else   if (resource instanceof ConceptMap)   composeConceptMap("String_Node_Str",(ConceptMap)resource);
 else   if (resource instanceof Condition)   composeCondition("String_Node_Str",(Condition)resource);
 else   if (resource instanceof Conformance)   composeConformance("String_Node_Str",(Conformance)resource);
 else   if (resource instanceof Contract)   composeContract("String_Node_Str",(Contract)resource);
 else   if (resource instanceof Contraindication)   composeContraindication("String_Node_Str",(Contraindication)resource);
 else   if (resource instanceof Coverage)   composeCoverage("String_Node_Str",(Coverage)resource);
 else   if (resource instanceof DataElement)   composeDataElement("String_Node_Str",(DataElement)resource);
 else   if (resource instanceof Device)   composeDevice("String_Node_Str",(Device)resource);
 else   if (resource instanceof DeviceObservationReport)   composeDeviceObservationReport("String_Node_Str",(DeviceObservationReport)resource);
 else   if (resource instanceof DiagnosticOrder)   composeDiagnosticOrder("String_Node_Str",(DiagnosticOrder)resource);
 else   if (resource instanceof DiagnosticReport)   composeDiagnosticReport("String_Node_Str",(DiagnosticReport)resource);
 else   if (resource instanceof DocumentManifest)   composeDocumentManifest("String_Node_Str",(DocumentManifest)resource);
 else   if (resource instanceof DocumentReference)   composeDocumentReference("String_Node_Str",(DocumentReference)resource);
 else   if (resource instanceof Encounter)   composeEncounter("String_Node_Str",(Encounter)resource);
 else   if (resource instanceof FamilyHistory)   composeFamilyHistory("String_Node_Str",(FamilyHistory)resource);
 else   if (resource instanceof Group)   composeGroup("String_Node_Str",(Group)resource);
 else   if (resource instanceof HealthcareService)   composeHealthcareService("String_Node_Str",(HealthcareService)resource);
 else   if (resource instanceof ImagingStudy)   composeImagingStudy("String_Node_Str",(ImagingStudy)resource);
 else   if (resource instanceof Immunization)   composeImmunization("String_Node_Str",(Immunization)resource);
 else   if (resource instanceof ImmunizationRecommendation)   composeImmunizationRecommendation("String_Node_Str",(ImmunizationRecommendation)resource);
 else   if (resource instanceof List_)   composeList_("String_Node_Str",(List_)resource);
 else   if (resource instanceof Location)   composeLocation("String_Node_Str",(Location)resource);
 else   if (resource instanceof Media)   composeMedia("String_Node_Str",(Media)resource);
 else   if (resource instanceof Medication)   composeMedication("String_Node_Str",(Medication)resource);
 else   if (resource instanceof MedicationAdministration)   composeMedicationAdministration("String_Node_Str",(MedicationAdministration)resource);
 else   if (resource instanceof MedicationDispense)   composeMedicationDispense("String_Node_Str",(MedicationDispense)resource);
 else   if (resource instanceof MedicationPrescription)   composeMedicationPrescription("String_Node_Str",(MedicationPrescription)resource);
 else   if (resource instanceof MedicationStatement)   composeMedicationStatement("String_Node_Str",(MedicationStatement)resource);
 else   if (resource instanceof MessageHeader)   composeMessageHeader("String_Node_Str",(MessageHeader)resource);
 else   if (resource instanceof Namespace)   composeNamespace("String_Node_Str",(Namespace)resource);
 else   if (resource instanceof NutritionOrder)   composeNutritionOrder("String_Node_Str",(NutritionOrder)resource);
 else   if (resource instanceof Observation)   composeObservation("String_Node_Str",(Observation)resource);
 else   if (resource instanceof OperationDefinition)   composeOperationDefinition("String_Node_Str",(OperationDefinition)resource);
 else   if (resource instanceof OperationOutcome)   composeOperationOutcome("String_Node_Str",(OperationOutcome)resource);
 else   if (resource instanceof OralHealthClaim)   composeOralHealthClaim("String_Node_Str",(OralHealthClaim)resource);
 else   if (resource instanceof Order)   composeOrder("String_Node_Str",(Order)resource);
 else   if (resource instanceof OrderResponse)   composeOrderResponse("String_Node_Str",(OrderResponse)resource);
 else   if (resource instanceof Organization)   composeOrganization("String_Node_Str",(Organization)resource);
 else   if (resource instanceof Other)   composeOther("String_Node_Str",(Other)resource);
 else   if (resource instanceof Patient)   composePatient("String_Node_Str",(Patient)resource);
 else   if (resource instanceof Practitioner)   composePractitioner("String_Node_Str",(Practitioner)resource);
 else   if (resource instanceof Procedure)   composeProcedure("String_Node_Str",(Procedure)resource);
 else   if (resource instanceof Profile)   composeProfile("String_Node_Str",(Profile)resource);
 else   if (resource instanceof Provenance)   composeProvenance("String_Node_Str",(Provenance)resource);
 else   if (resource instanceof Query)   composeQuery("String_Node_Str",(Query)resource);
 else   if (resource instanceof Questionnaire)   composeQuestionnaire("String_Node_Str",(Questionnaire)resource);
 else   if (resource instanceof QuestionnaireAnswers)   composeQuestionnaireAnswers("String_Node_Str",(QuestionnaireAnswers)resource);
 else   if (resource instanceof ReferralRequest)   composeReferralRequest("String_Node_Str",(ReferralRequest)resource);
 else   if (resource instanceof RelatedPerson)   composeRelatedPerson("String_Node_Str",(RelatedPerson)resource);
 else   if (resource instanceof RiskAssessment)   composeRiskAssessment("String_Node_Str",(RiskAssessment)resource);
 else   if (resource instanceof SecurityEvent)   composeSecurityEvent("String_Node_Str",(SecurityEvent)resource);
 else   if (resource instanceof Slot)   composeSlot("String_Node_Str",(Slot)resource);
 else   if (resource instanceof Specimen)   composeSpecimen("String_Node_Str",(Specimen)resource);
 else   if (resource instanceof Subscription)   composeSubscription("String_Node_Str",(Subscription)resource);
 else   if (resource instanceof Substance)   composeSubstance("String_Node_Str",(Substance)resource);
 else   if (resource instanceof Supply)   composeSupply("String_Node_Str",(Supply)resource);
 else   if (resource instanceof ValueSet)   composeValueSet("String_Node_Str",(ValueSet)resource);
 else   if (resource instanceof Binary)   composeBinary("String_Node_Str",(Binary)resource);
 else   throw new Exception("String_Node_Str" + resource.getClass().getName());
}