Program: 59852
Project: 59852
Buggy source:
/** 
 * Do the parsing itself by using JAXB
 * @return parsed JAXB scenario model
 * @throws PerfCakeException if XML is not valid or cannot be successfully parsed
 */
private org.perfcake.model.Scenario parse() throws PerfCakeException {
  try {
    final Source scenarioXML=new StreamSource(new ByteArrayInputStream(scenarioConfig.getBytes(Utils.getDefaultEncoding())));
    final String schemaFileName="String_Node_Str" + PerfCakeConst.XSD_SCHEMA_VERSION + "String_Node_Str";
    final URL backupUrl=new URL("String_Node_Str" + schemaFileName);
    URL scenarioXsdUrl=Utils.getResourceAsUrl("String_Node_Str" + schemaFileName);
    try {
      if (!(new File(scenarioXsdUrl.toURI())).exists()) {
        scenarioXsdUrl=backupUrl;
      }
    }
 catch (    URISyntaxException e) {
      scenarioXsdUrl=backupUrl;
    }
    final SchemaFactory schemaFactory=SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
    final Schema schema=schemaFactory.newSchema(scenarioXsdUrl);
    final JAXBContext context=JAXBContext.newInstance(org.perfcake.model.Scenario.class);
    final Unmarshaller unmarshaller=context.createUnmarshaller();
    unmarshaller.setSchema(schema);
    return (org.perfcake.model.Scenario)unmarshaller.unmarshal(scenarioXML);
  }
 catch (  SAXException e) {
    throw new PerfCakeException("String_Node_Str",e);
  }
catch (  JAXBException e) {
    throw new PerfCakeException("String_Node_Str",e);
  }
catch (  MalformedURLException e) {
    throw new PerfCakeException("String_Node_Str",e);
  }
catch (  UnsupportedEncodingException e) {
    throw new PerfCakeException("String_Node_Str",e);
  }
}

Fixed version (ground truth):
/** 
 * Do the parsing itself by using JAXB
 * @return parsed JAXB scenario model
 * @throws PerfCakeException if XML is not valid or cannot be successfully parsed
 */
private org.perfcake.model.Scenario parse() throws PerfCakeException {
  try {
    final Source scenarioXML=new StreamSource(new ByteArrayInputStream(scenarioConfig.getBytes(Utils.getDefaultEncoding())));
    final String schemaFileName="String_Node_Str" + PerfCakeConst.XSD_SCHEMA_VERSION + "String_Node_Str";
    final URL backupUrl=new URL("String_Node_Str" + schemaFileName);
    URL scenarioXsdUrl=Utils.getResourceAsUrl("String_Node_Str" + schemaFileName);
    if (!(new File(scenarioXsdUrl.getFile())).exists()) {
      scenarioXsdUrl=backupUrl;
    }
    final SchemaFactory schemaFactory=SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
    final Schema schema=schemaFactory.newSchema(scenarioXsdUrl);
    final JAXBContext context=JAXBContext.newInstance(org.perfcake.model.Scenario.class);
    final Unmarshaller unmarshaller=context.createUnmarshaller();
    unmarshaller.setSchema(schema);
    return (org.perfcake.model.Scenario)unmarshaller.unmarshal(scenarioXML);
  }
 catch (  SAXException e) {
    throw new PerfCakeException("String_Node_Str",e);
  }
catch (  JAXBException e) {
    throw new PerfCakeException("String_Node_Str",e);
  }
catch (  MalformedURLException e) {
    throw new PerfCakeException("String_Node_Str",e);
  }
catch (  UnsupportedEncodingException e) {
    throw new PerfCakeException("String_Node_Str",e);
  }
}