Program: 23407
Project: 23407
Buggy source:
private ValidationResult serverValidateCode(Parameters pin,boolean doCache) throws IOException {
  if (noTerminologyServer)   return new ValidationResult(null,null,TerminologyServiceErrorClass.NOSERVICE);
  String cacheName=doCache ? generateCacheName(pin) : null;
  ValidationResult res=loadFromCache(cacheName);
  if (res != null)   return res;
  log("String_Node_Str" + describeValidationParameters(pin));
  Parameters pout=txServer.operateType(ValueSet.class,"String_Node_Str",pin);
  boolean ok=false;
  String message="String_Node_Str";
  String display=null;
  TerminologyServiceErrorClass err=TerminologyServiceErrorClass.UNKNOWN;
  for (  ParametersParameterComponent p : pout.getParameter()) {
    if (p.getName().equals("String_Node_Str"))     ok=((BooleanType)p.getValue()).getValue().booleanValue();
 else     if (p.getName().equals("String_Node_Str"))     message=((StringType)p.getValue()).getValue();
 else     if (p.getName().equals("String_Node_Str"))     display=((StringType)p.getValue()).getValue();
 else     if (p.getName().equals("String_Node_Str")) {
      try {
        IssueType it=IssueType.fromCode(((StringType)p.getValue()).getValue());
        if (it == IssueType.UNKNOWN || it == IssueType.NOTSUPPORTED)         err=TerminologyServiceErrorClass.VALUESET_UNSUPPORTED;
      }
 catch (      FHIRException e) {
      }
    }
  }
  if (!ok)   res=new ValidationResult(IssueSeverity.ERROR,message,err);
 else   if (display != null)   res=new ValidationResult(new ConceptDefinitionComponent().setDisplay(display));
 else   res=new ValidationResult(null);
  saveToCache(res,cacheName);
  return res;
}

Fixed version (ground truth):
private ValidationResult serverValidateCode(Parameters pin,boolean doCache) throws IOException {
  if (noTerminologyServer)   return new ValidationResult(null,null,TerminologyServiceErrorClass.NOSERVICE);
  String cacheName=doCache ? generateCacheName(pin) : null;
  ValidationResult res=loadFromCache(cacheName);
  if (res != null)   return res;
  log("String_Node_Str" + describeValidationParameters(pin));
  Parameters pout=txServer.operateType(ValueSet.class,"String_Node_Str",pin);
  boolean ok=false;
  String message="String_Node_Str";
  String display=null;
  TerminologyServiceErrorClass err=TerminologyServiceErrorClass.UNKNOWN;
  for (  ParametersParameterComponent p : pout.getParameter()) {
    if (p.getName().equals("String_Node_Str"))     ok=((BooleanType)p.getValue()).getValue().booleanValue();
 else     if (p.getName().equals("String_Node_Str"))     message=((StringType)p.getValue()).getValue();
 else     if (p.getName().equals("String_Node_Str"))     display=((StringType)p.getValue()).getValue();
 else     if (p.getName().equals("String_Node_Str")) {
      try {
        IssueType it=IssueType.fromCode(((StringType)p.getValue()).getValue());
        if (it == IssueType.UNKNOWN)         err=TerminologyServiceErrorClass.UNKNOWN;
 else         if (it == IssueType.NOTSUPPORTED)         err=TerminologyServiceErrorClass.VALUESET_UNSUPPORTED;
      }
 catch (      FHIRException e) {
      }
    }
  }
  if (!ok)   res=new ValidationResult(IssueSeverity.ERROR,message,err);
 else   if (display != null)   res=new ValidationResult(new ConceptDefinitionComponent().setDisplay(display));
 else   res=new ValidationResult(null);
  saveToCache(res,cacheName);
  return res;
}