Program: 24006
Project: 24006
Buggy source:
protected void composeLocationInner(Location element) throws IOException {
  composeDomainResourceElements(element);
  if (element.hasIdentifier()) {
    openArray("String_Node_Str");
    for (    Identifier e : element.getIdentifier())     composeIdentifier(null,e);
    closeArray();
  }
  ;
  if (element.hasStatusElement()) {
    composeEnumerationCore("String_Node_Str",element.getStatusElement(),new Location.LocationStatusEnumFactory(),false);
    composeEnumerationExtras("String_Node_Str",element.getStatusElement(),new Location.LocationStatusEnumFactory(),false);
  }
  if (element.hasNameElement()) {
    composeStringCore("String_Node_Str",element.getNameElement(),false);
    composeStringExtras("String_Node_Str",element.getNameElement(),false);
  }
  if (element.hasDescriptionElement()) {
    composeStringCore("String_Node_Str",element.getDescriptionElement(),false);
    composeStringExtras("String_Node_Str",element.getDescriptionElement(),false);
  }
  if (element.hasModeElement()) {
    composeEnumerationCore("String_Node_Str",element.getModeElement(),new Location.LocationModeEnumFactory(),false);
    composeEnumerationExtras("String_Node_Str",element.getModeElement(),new Location.LocationModeEnumFactory(),false);
  }
  if (element.hasType()) {
    composeCodeableConcept("String_Node_Str",element.getType());
  }
  if (element.hasTelecom()) {
    openArray("String_Node_Str");
    for (    ContactPoint e : element.getTelecom())     composeContactPoint(null,e);
    closeArray();
  }
  ;
  if (element.hasAddress()) {
    composeAddress("String_Node_Str",element.getAddress());
  }
  if (element.hasPhysicalType()) {
    composeCodeableConcept("String_Node_Str",element.getPhysicalType());
  }
  if (element.hasPosition()) {
    composeLocationLocationPositionComponent("String_Node_Str",element.getPosition());
  }
  if (element.hasManagingOrganization()) {
    composeReference("String_Node_Str",element.getManagingOrganization());
  }
  if (element.hasPartOf()) {
    composeReference("String_Node_Str",element.getPartOf());
  }
}

Fixed version (ground truth):
protected void composeLocationInner(Location element) throws IOException {
  composeDomainResourceElements(element);
  if (element.hasIdentifier()) {
    openArray("String_Node_Str");
    for (    Identifier e : element.getIdentifier())     composeIdentifier(null,e);
    closeArray();
  }
  ;
  if (element.hasStatusElement()) {
    composeEnumerationCore("String_Node_Str",element.getStatusElement(),new Location.LocationStatusEnumFactory(),false);
    composeEnumerationExtras("String_Node_Str",element.getStatusElement(),new Location.LocationStatusEnumFactory(),false);
  }
  if (element.hasNameElement()) {
    composeStringCore("String_Node_Str",element.getNameElement(),false);
    composeStringExtras("String_Node_Str",element.getNameElement(),false);
  }
  if (element.hasDescriptionElement()) {
    composeStringCore("String_Node_Str",element.getDescriptionElement(),false);
    composeStringExtras("String_Node_Str",element.getDescriptionElement(),false);
  }
  if (element.hasModeElement()) {
    composeEnumerationCore("String_Node_Str",element.getModeElement(),new Location.LocationModeEnumFactory(),false);
    composeEnumerationExtras("String_Node_Str",element.getModeElement(),new Location.LocationModeEnumFactory(),false);
  }
  if (element.hasType()) {
    composeCodeableConcept("String_Node_Str",element.getType());
  }
  if (element.hasTelecom()) {
    openArray("String_Node_Str");
    for (    ContactPoint e : element.getTelecom())     composeContactPoint(null,e);
    closeArray();
  }
  ;
  if (element.hasAddress()) {
    composeAddress("String_Node_Str",element.getAddress());
  }
  if (element.hasPhysicalType()) {
    composeCodeableConcept("String_Node_Str",element.getPhysicalType());
  }
  if (element.hasPosition()) {
    composeLocationLocationPositionComponent("String_Node_Str",element.getPosition());
  }
  if (element.hasManagingOrganization()) {
    composeReference("String_Node_Str",element.getManagingOrganization());
  }
  if (element.hasPartOf()) {
    composeReference("String_Node_Str",element.getPartOf());
  }
  if (element.hasEndpoint()) {
    openArray("String_Node_Str");
    for (    Reference e : element.getEndpoint())     composeReference(null,e);
    closeArray();
  }
  ;
}