Program: 51963
Project: 51963
Buggy source:
protected Model loadConfiguration(){
  String mappingPathes=configurationService.getProperty(METADATA_MAPPING_PATH_KEY);
  if (StringUtils.isEmpty(mappingPathes)) {
    return null;
  }
  String[] mappings=mappingPathes.split("String_Node_Str");
  if (mappings == null || mappings.length == 0) {
    log.error("String_Node_Str" + "String_Node_Str" + METADATA_MAPPING_PATH_KEY + "String_Node_Str");
    return null;
  }
  InputStream is=null;
  Model config=ModelFactory.createDefaultModel();
  for (  String mappingPath : mappings) {
    is=FileManager.get().open(mappingPath);
    if (is == null) {
      log.warn("String_Node_Str" + mappingPath + "String_Node_Str");
    }
    config.read(is,"String_Node_Str" + mappingPath,FileUtils.guessLang(mappingPath));
    try {
      is.close();
    }
 catch (    IOException ex) {
    }
  }
  if (config.isEmpty()) {
    config.close();
    log.warn("String_Node_Str");
    return null;
  }
  String schemaURL=configurationService.getProperty(METADATA_SCHEMA_URL_KEY);
  if (schemaURL == null) {
    log.error("String_Node_Str" + "String_Node_Str" + METADATA_SCHEMA_URL_KEY + "String_Node_Str");
  }
  if (!StringUtils.isEmpty(schemaURL)) {
    log.debug("String_Node_Str");
    Model schema=ModelFactory.createDefaultModel();
    schema.read(schemaURL);
    Reasoner reasoner=ReasonerRegistry.getRDFSSimpleReasoner().bindSchema(schema);
    InfModel inf=ModelFactory.createInfModel(reasoner,config);
    ValidityReport reports=inf.validate();
    if (!reports.isValid()) {
      StringBuilder sb=new StringBuilder();
      sb.append("String_Node_Str");
      sb.append("String_Node_Str");
      sb.append(DMRM.getURI());
      sb.append("String_Node_Str");
      for (Iterator<ValidityReport.Report> iter=reports.getReports(); iter.hasNext(); ) {
        ValidityReport.Report report=iter.next();
        if (report.isError) {
          sb.append("String_Node_Str" + iter.next() + "String_Node_Str");
        }
      }
      log.error(sb.toString());
      return null;
    }
    return inf;
  }
  return config;
}

Fixed version (ground truth):
protected Model loadConfiguration(){
  String mappingPathes=configurationService.getProperty(METADATA_MAPPING_PATH_KEY);
  if (StringUtils.isEmpty(mappingPathes)) {
    return null;
  }
  String[] mappings=mappingPathes.split("String_Node_Str");
  if (mappings == null || mappings.length == 0) {
    log.error("String_Node_Str" + "String_Node_Str" + METADATA_MAPPING_PATH_KEY + "String_Node_Str");
    return null;
  }
  InputStream is=null;
  Model config=ModelFactory.createDefaultModel();
  for (  String mappingPath : mappings) {
    is=FileManager.get().open(mappingPath);
    if (is == null) {
      log.warn("String_Node_Str" + mappingPath + "String_Node_Str");
    }
    config.read(is,"String_Node_Str" + mappingPath,FileUtils.guessLang(mappingPath));
    try {
      if (is != null) {
        is.close();
      }
    }
 catch (    IOException ex) {
    }
  }
  if (config.isEmpty()) {
    config.close();
    log.warn("String_Node_Str");
    return null;
  }
  String schemaURL=configurationService.getProperty(METADATA_SCHEMA_URL_KEY);
  if (schemaURL == null) {
    log.error("String_Node_Str" + "String_Node_Str" + METADATA_SCHEMA_URL_KEY + "String_Node_Str");
  }
  if (!StringUtils.isEmpty(schemaURL)) {
    log.debug("String_Node_Str");
    Model schema=ModelFactory.createDefaultModel();
    schema.read(schemaURL);
    Reasoner reasoner=ReasonerRegistry.getRDFSSimpleReasoner().bindSchema(schema);
    InfModel inf=ModelFactory.createInfModel(reasoner,config);
    ValidityReport reports=inf.validate();
    if (!reports.isValid()) {
      StringBuilder sb=new StringBuilder();
      sb.append("String_Node_Str");
      sb.append("String_Node_Str");
      sb.append(DMRM.getURI());
      sb.append("String_Node_Str");
      for (Iterator<ValidityReport.Report> iter=reports.getReports(); iter.hasNext(); ) {
        ValidityReport.Report report=iter.next();
        if (report.isError) {
          sb.append("String_Node_Str" + iter.next() + "String_Node_Str");
        }
      }
      log.error(sb.toString());
      return null;
    }
    return inf;
  }
  return config;
}