Program: 23017
Project: 23017
Buggy source:
private void load(String type) throws Exception {
  log(LogCategory.PROGRESS,"String_Node_Str" + type);
  for (  FetchedFile f : fileList) {
    for (    FetchedResource r : f.getResources()) {
      if (r.getElement().fhirType().equals(type)) {
        log(LogCategory.PROGRESS,"String_Node_Str" + r.getId());
        if (!r.isValidated())         validate(f,r);
        if (r.getResource() == null)         try {
          r.setResource(parse(f));
          r.getResource().setUserData("String_Node_Str",r.getElement());
        }
 catch (        Exception e) {
          throw new Exception("String_Node_Str" + f.getName() + "String_Node_Str"+ e.getMessage(),e);
        }
        if (r.getResource() instanceof MetadataResource) {
          MetadataResource bc=(MetadataResource)r.getResource();
          if (bc == null)           throw new Exception("String_Node_Str" + f.getPath() + "String_Node_Str");
          boolean altered=false;
          if (bc.hasUrl()) {
            if (adHocTmpDir == null && !listedURLExemptions.contains(bc.getUrl()) && !bc.getUrl().equals(Utilities.pathURL(igpkp.getCanonical(),bc.fhirType(),bc.getId())))             throw new Exception("String_Node_Str" + f.getPath() + "String_Node_Str"+ Utilities.pathURL(igpkp.getCanonical(),bc.fhirType(),bc.getId())+ "String_Node_Str"+ bc.getUrl()+ "String_Node_Str");
          }
 else           if (bc.hasId())           bc.setUrl(Utilities.pathURL(igpkp.getCanonical(),bc.fhirType(),bc.getId()));
 else           throw new Exception("String_Node_Str" + f.getPath() + "String_Node_Str");
          if (businessVersion != null) {
            if (!bc.hasVersion()) {
              altered=true;
            }
 else             if (!bc.getVersion().equals(businessVersion))             System.out.println("String_Node_Str" + f.getName() + "String_Node_Str"+ bc.getVersion()+ "String_Node_Str"+ businessVersion);
            bc.setVersion(businessVersion);
          }
          if (jurisdictions != null) {
            altered=true;
            bc.getJurisdiction().clear();
            bc.getJurisdiction().addAll(jurisdictions);
          }
          if (!bc.hasDate()) {
            altered=true;
            bc.setDateElement(new DateTimeType(execTime));
          }
          if (!bc.hasStatus()) {
            altered=true;
            bc.setStatus(PublicationStatus.DRAFT);
          }
          if (altered)           r.setElement(convertToElement(bc));
          igpkp.checkForPath(f,r,bc);
          try {
            context.cacheResource(bc);
          }
 catch (          Exception e) {
            throw new Exception("String_Node_Str" + bc.getUrl() + "String_Node_Str"+ e.getMessage(),e);
          }
        }
      }
    }
  }
}

Fixed version (ground truth):
private void load(String type) throws Exception {
  log(LogCategory.PROGRESS,"String_Node_Str" + type);
  for (  FetchedFile f : fileList) {
    for (    FetchedResource r : f.getResources()) {
      if (r.getElement().fhirType().equals(type)) {
        log(LogCategory.PROGRESS,"String_Node_Str" + r.getId());
        if (!r.isValidated())         validate(f,r);
        if (r.getResource() == null)         try {
          if (f.getBundleType() == FetchedBundleType.NATIVE)           r.setResource(parseInternal(f,r));
 else           r.setResource(parse(f));
          r.getResource().setUserData("String_Node_Str",r.getElement());
        }
 catch (        Exception e) {
          throw new Exception("String_Node_Str" + f.getName() + "String_Node_Str"+ e.getMessage(),e);
        }
        if (r.getResource() instanceof MetadataResource) {
          MetadataResource bc=(MetadataResource)r.getResource();
          if (bc == null)           throw new Exception("String_Node_Str" + f.getPath() + "String_Node_Str");
          boolean altered=false;
          if (bc.hasUrl()) {
            if (adHocTmpDir == null && !listedURLExemptions.contains(bc.getUrl()) && !bc.getUrl().equals(Utilities.pathURL(igpkp.getCanonical(),bc.fhirType(),bc.getId())))             throw new Exception("String_Node_Str" + f.getPath() + "String_Node_Str"+ Utilities.pathURL(igpkp.getCanonical(),bc.fhirType(),bc.getId())+ "String_Node_Str"+ bc.getUrl()+ "String_Node_Str");
          }
 else           if (bc.hasId())           bc.setUrl(Utilities.pathURL(igpkp.getCanonical(),bc.fhirType(),bc.getId()));
 else           throw new Exception("String_Node_Str" + f.getPath() + "String_Node_Str");
          if (businessVersion != null) {
            if (!bc.hasVersion()) {
              altered=true;
            }
 else             if (!bc.getVersion().equals(businessVersion))             System.out.println("String_Node_Str" + f.getName() + "String_Node_Str"+ bc.getVersion()+ "String_Node_Str"+ businessVersion);
            bc.setVersion(businessVersion);
          }
          if (jurisdictions != null) {
            altered=true;
            bc.getJurisdiction().clear();
            bc.getJurisdiction().addAll(jurisdictions);
          }
          if (!bc.hasDate()) {
            altered=true;
            bc.setDateElement(new DateTimeType(execTime));
          }
          if (!bc.hasStatus()) {
            altered=true;
            bc.setStatus(PublicationStatus.DRAFT);
          }
          if (altered)           r.setElement(convertToElement(bc));
          igpkp.checkForPath(f,r,bc);
          try {
            context.cacheResource(bc);
          }
 catch (          Exception e) {
            throw new Exception("String_Node_Str" + bc.getUrl() + "String_Node_Str"+ e.getMessage(),e);
          }
        }
      }
    }
  }
}