Program: 23992
Project: 23992
Buggy source:
protected void composePlanDefinition(Complex parent,String parentType,String name,PlanDefinition element,int index){
  if (element == null)   return;
  Complex t;
  if (Utilities.noString(parentType))   t=parent;
 else {
    t=parent.predicate("String_Node_Str" + parentType + '.'+ name);
  }
  composeDomainResource(t,"String_Node_Str",name,element,index);
  if (element.hasModuleMetadata())   composeModuleMetadata(t,"String_Node_Str","String_Node_Str",element.getModuleMetadata(),-1);
  for (int i=0; i < element.getLibrary().size(); i++)   composeReference(t,"String_Node_Str","String_Node_Str",element.getLibrary().get(i),i);
  for (int i=0; i < element.getActionDefinition().size(); i++)   composePlanDefinitionPlanDefinitionActionDefinitionComponent(t,"String_Node_Str","String_Node_Str",element.getActionDefinition().get(i),i);
}

Fixed version (ground truth):
protected void composePlanDefinition(Complex parent,String parentType,String name,PlanDefinition element,int index){
  if (element == null)   return;
  Complex t;
  if (Utilities.noString(parentType))   t=parent;
 else {
    t=parent.predicate("String_Node_Str" + parentType + '.'+ name);
  }
  composeDomainResource(t,"String_Node_Str",name,element,index);
  if (element.hasUrlElement())   composeUri(t,"String_Node_Str","String_Node_Str",element.getUrlElement(),-1);
  for (int i=0; i < element.getIdentifier().size(); i++)   composeIdentifier(t,"String_Node_Str","String_Node_Str",element.getIdentifier().get(i),i);
  if (element.hasVersionElement())   composeString(t,"String_Node_Str","String_Node_Str",element.getVersionElement(),-1);
  if (element.hasNameElement())   composeString(t,"String_Node_Str","String_Node_Str",element.getNameElement(),-1);
  if (element.hasTitleElement())   composeString(t,"String_Node_Str","String_Node_Str",element.getTitleElement(),-1);
  if (element.hasStatusElement())   composeCode(t,"String_Node_Str","String_Node_Str",element.getStatusElement(),-1);
  if (element.hasExperimentalElement())   composeBoolean(t,"String_Node_Str","String_Node_Str",element.getExperimentalElement(),-1);
  if (element.hasDescriptionElement())   composeString(t,"String_Node_Str","String_Node_Str",element.getDescriptionElement(),-1);
  if (element.hasPurposeElement())   composeString(t,"String_Node_Str","String_Node_Str",element.getPurposeElement(),-1);
  if (element.hasUsageElement())   composeString(t,"String_Node_Str","String_Node_Str",element.getUsageElement(),-1);
  if (element.hasPublicationDateElement())   composeDate(t,"String_Node_Str","String_Node_Str",element.getPublicationDateElement(),-1);
  if (element.hasLastReviewDateElement())   composeDate(t,"String_Node_Str","String_Node_Str",element.getLastReviewDateElement(),-1);
  if (element.hasEffectivePeriod())   composePeriod(t,"String_Node_Str","String_Node_Str",element.getEffectivePeriod(),-1);
  for (int i=0; i < element.getCoverage().size(); i++)   composeUsageContext(t,"String_Node_Str","String_Node_Str",element.getCoverage().get(i),i);
  for (int i=0; i < element.getTopic().size(); i++)   composeCodeableConcept(t,"String_Node_Str","String_Node_Str",element.getTopic().get(i),i);
  for (int i=0; i < element.getContributor().size(); i++)   composeContributor(t,"String_Node_Str","String_Node_Str",element.getContributor().get(i),i);
  if (element.hasPublisherElement())   composeString(t,"String_Node_Str","String_Node_Str",element.getPublisherElement(),-1);
  for (int i=0; i < element.getContact().size(); i++)   composeContactDetail(t,"String_Node_Str","String_Node_Str",element.getContact().get(i),i);
  if (element.hasCopyrightElement())   composeString(t,"String_Node_Str","String_Node_Str",element.getCopyrightElement(),-1);
  for (int i=0; i < element.getRelatedResource().size(); i++)   composeRelatedResource(t,"String_Node_Str","String_Node_Str",element.getRelatedResource().get(i),i);
  for (int i=0; i < element.getLibrary().size(); i++)   composeReference(t,"String_Node_Str","String_Node_Str",element.getLibrary().get(i),i);
  for (int i=0; i < element.getActionDefinition().size(); i++)   composePlanDefinitionPlanDefinitionActionDefinitionComponent(t,"String_Node_Str","String_Node_Str",element.getActionDefinition().get(i),i);
}