Program: 24010
Project: 24010
Buggy source:
protected void composeEndpoint(Complex parent,String parentType,String name,Endpoint 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.hasStatusElement())   composeEnum(t,"String_Node_Str","String_Node_Str",element.getStatusElement(),-1);
  if (element.hasManagingOrganization())   composeReference(t,"String_Node_Str","String_Node_Str",element.getManagingOrganization(),-1);
  for (int i=0; i < element.getContact().size(); i++)   composeContactPoint(t,"String_Node_Str","String_Node_Str",element.getContact().get(i),i);
  if (element.hasConnectionTypeElement())   composeCode(t,"String_Node_Str","String_Node_Str",element.getConnectionTypeElement(),-1);
  for (int i=0; i < element.getMethod().size(); i++)   composeCoding(t,"String_Node_Str","String_Node_Str",element.getMethod().get(i),i);
  if (element.hasPeriod())   composePeriod(t,"String_Node_Str","String_Node_Str",element.getPeriod(),-1);
  if (element.hasAddress())   composeType(t,"String_Node_Str","String_Node_Str",element.getAddress(),-1);
  if (element.hasPayloadFormatElement())   composeString(t,"String_Node_Str","String_Node_Str",element.getPayloadFormatElement(),-1);
  for (int i=0; i < element.getPayloadType().size(); i++)   composeCodeableConcept(t,"String_Node_Str","String_Node_Str",element.getPayloadType().get(i),i);
  for (int i=0; i < element.getHeader().size(); i++)   composeString(t,"String_Node_Str","String_Node_Str",element.getHeader().get(i),i);
  if (element.hasPublicKeyElement())   composeString(t,"String_Node_Str","String_Node_Str",element.getPublicKeyElement(),-1);
}

Fixed version (ground truth):
protected void composeEndpoint(Complex parent,String parentType,String name,Endpoint 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);
  for (int i=0; i < element.getIdentifier().size(); i++)   composeIdentifier(t,"String_Node_Str","String_Node_Str",element.getIdentifier().get(i),i);
  if (element.hasStatusElement())   composeEnum(t,"String_Node_Str","String_Node_Str",element.getStatusElement(),-1);
  if (element.hasManagingOrganization())   composeReference(t,"String_Node_Str","String_Node_Str",element.getManagingOrganization(),-1);
  for (int i=0; i < element.getContact().size(); i++)   composeContactPoint(t,"String_Node_Str","String_Node_Str",element.getContact().get(i),i);
  if (element.hasConnectionTypeElement())   composeCode(t,"String_Node_Str","String_Node_Str",element.getConnectionTypeElement(),-1);
  for (int i=0; i < element.getMethod().size(); i++)   composeCoding(t,"String_Node_Str","String_Node_Str",element.getMethod().get(i),i);
  if (element.hasPeriod())   composePeriod(t,"String_Node_Str","String_Node_Str",element.getPeriod(),-1);
  if (element.hasAddress())   composeType(t,"String_Node_Str","String_Node_Str",element.getAddress(),-1);
  if (element.hasPayloadFormatElement())   composeString(t,"String_Node_Str","String_Node_Str",element.getPayloadFormatElement(),-1);
  for (int i=0; i < element.getPayloadType().size(); i++)   composeCodeableConcept(t,"String_Node_Str","String_Node_Str",element.getPayloadType().get(i),i);
  for (int i=0; i < element.getHeader().size(); i++)   composeString(t,"String_Node_Str","String_Node_Str",element.getHeader().get(i),i);
  if (element.hasPublicKeyElement())   composeString(t,"String_Node_Str","String_Node_Str",element.getPublicKeyElement(),-1);
}