Program: 23985
Project: 23985
Buggy source:
protected void composeConsentExceptComponentInner(Consent.ExceptComponent element) throws IOException {
  composeBackbone(element);
  if (element.hasTypeElement()) {
    composeEnumerationCore("String_Node_Str",element.getTypeElement(),new Consent.ConsentExceptTypeEnumFactory(),false);
    composeEnumerationExtras("String_Node_Str",element.getTypeElement(),new Consent.ConsentExceptTypeEnumFactory(),false);
  }
  if (element.hasPeriod()) {
    composePeriod("String_Node_Str",element.getPeriod());
  }
  if (element.hasActor()) {
    openArray("String_Node_Str");
    for (    Consent.ExceptActorComponent e : element.getActor())     composeConsentExceptActorComponent(null,e);
    closeArray();
  }
  ;
  if (element.hasAction()) {
    openArray("String_Node_Str");
    for (    CodeableConcept e : element.getAction())     composeCodeableConcept(null,e);
    closeArray();
  }
  ;
  if (element.hasSecurityLabel()) {
    openArray("String_Node_Str");
    for (    Coding e : element.getSecurityLabel())     composeCoding(null,e);
    closeArray();
  }
  ;
  if (element.hasPurpose()) {
    openArray("String_Node_Str");
    for (    Coding e : element.getPurpose())     composeCoding(null,e);
    closeArray();
  }
  ;
  if (element.hasData()) {
    openArray("String_Node_Str");
    for (    Consent.ExceptDataComponent e : element.getData())     composeConsentExceptDataComponent(null,e);
    closeArray();
  }
  ;
}

Fixed version (ground truth):
protected void composeConsentExceptComponentInner(Consent.ExceptComponent element) throws IOException {
  composeBackbone(element);
  if (element.hasTypeElement()) {
    composeEnumerationCore("String_Node_Str",element.getTypeElement(),new Consent.ConsentExceptTypeEnumFactory(),false);
    composeEnumerationExtras("String_Node_Str",element.getTypeElement(),new Consent.ConsentExceptTypeEnumFactory(),false);
  }
  if (element.hasPeriod()) {
    composePeriod("String_Node_Str",element.getPeriod());
  }
  if (element.hasActor()) {
    openArray("String_Node_Str");
    for (    Consent.ExceptActorComponent e : element.getActor())     composeConsentExceptActorComponent(null,e);
    closeArray();
  }
  ;
  if (element.hasAction()) {
    openArray("String_Node_Str");
    for (    CodeableConcept e : element.getAction())     composeCodeableConcept(null,e);
    closeArray();
  }
  ;
  if (element.hasSecurityLabel()) {
    openArray("String_Node_Str");
    for (    Coding e : element.getSecurityLabel())     composeCoding(null,e);
    closeArray();
  }
  ;
  if (element.hasPurpose()) {
    openArray("String_Node_Str");
    for (    Coding e : element.getPurpose())     composeCoding(null,e);
    closeArray();
  }
  ;
  if (element.hasClass_()) {
    openArray("String_Node_Str");
    for (    Coding e : element.getClass_())     composeCoding(null,e);
    closeArray();
  }
  ;
  if (element.hasCode()) {
    openArray("String_Node_Str");
    for (    Coding e : element.getCode())     composeCoding(null,e);
    closeArray();
  }
  ;
  if (element.hasData()) {
    openArray("String_Node_Str");
    for (    Consent.ExceptDataComponent e : element.getData())     composeConsentExceptDataComponent(null,e);
    closeArray();
  }
  ;
}