Program: 23991
Project: 23991
Buggy source:
protected void composeActivityDefinition(Complex parent,String parentType,String name,ActivityDefinition 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);
  if (element.hasCategoryElement())   composeEnum(t,"String_Node_Str","String_Node_Str",element.getCategoryElement(),-1);
  if (element.hasCode())   composeCodeableConcept(t,"String_Node_Str","String_Node_Str",element.getCode(),-1);
  if (element.hasTiming())   composeType(t,"String_Node_Str","String_Node_Str",element.getTiming(),-1);
  if (element.hasLocation())   composeReference(t,"String_Node_Str","String_Node_Str",element.getLocation(),-1);
  for (int i=0; i < element.getParticipantType().size(); i++)   composeEnum(t,"String_Node_Str","String_Node_Str",element.getParticipantType().get(i),i);
  if (element.hasProduct())   composeType(t,"String_Node_Str","String_Node_Str",element.getProduct(),-1);
  if (element.hasQuantity())   composeQuantity(t,"String_Node_Str","String_Node_Str",element.getQuantity(),-1);
  if (element.hasDescriptionElement())   composeString(t,"String_Node_Str","String_Node_Str",element.getDescriptionElement(),-1);
}

Fixed version (ground truth):
protected void composeActivityDefinition(Complex parent,String parentType,String name,ActivityDefinition 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);
  if (element.hasCategoryElement())   composeEnum(t,"String_Node_Str","String_Node_Str",element.getCategoryElement(),-1);
  if (element.hasCode())   composeCodeableConcept(t,"String_Node_Str","String_Node_Str",element.getCode(),-1);
  if (element.hasTiming())   composeType(t,"String_Node_Str","String_Node_Str",element.getTiming(),-1);
  if (element.hasLocation())   composeReference(t,"String_Node_Str","String_Node_Str",element.getLocation(),-1);
  for (int i=0; i < element.getParticipantType().size(); i++)   composeEnum(t,"String_Node_Str","String_Node_Str",element.getParticipantType().get(i),i);
  if (element.hasProduct())   composeType(t,"String_Node_Str","String_Node_Str",element.getProduct(),-1);
  if (element.hasQuantity())   composeQuantity(t,"String_Node_Str","String_Node_Str",element.getQuantity(),-1);
}