Program: 109493
Project: 109493
Buggy source:
@Override public void perform(GraphRewrite event,EvaluationContext context,XmlFileModel payload){
  setup();
  GraphContext graphContext=event.getGraphContext();
  GraphService<XsltTransformationModel> transformationService=new GraphService<>(graphContext,XsltTransformationModel.class);
  String fileName=payload.getFileName();
  fileName=StringUtils.replace(fileName,"String_Node_Str","String_Node_Str");
  fileName=fileName + extension;
  XsltTransformationService xsltTransformationService=new XsltTransformationService(graphContext);
  Path outputPath=xsltTransformationService.getTransformedXSLTPath();
  Path resultPath=outputPath.resolve(fileName);
  Source xmlSource=new DOMSource(payload.asDocument());
  Result xmlResult=new StreamResult(resultPath.toFile());
  try {
    xsltTransformer.transform(xmlSource,xmlResult);
    XsltTransformationModel transformation=transformationService.create();
    transformation.setDescription(description);
    transformation.setExtension(extension);
    transformation.setSourceLocation(template);
    transformation.setSourceFile(payload);
    transformation.setResult(fileName);
    ClassificationService classificationService=new ClassificationService(graphContext);
    ClassificationModel classificationModel=classificationService.create();
    classificationModel.setClassifiation("String_Node_Str" + description);
    classificationModel.addFileModel(payload);
    GraphService<LinkModel> linkService=new GraphService<>(graphContext,LinkModel.class);
    LinkModel linkModel=linkService.create();
    linkModel.setDescription(description);
    linkModel.setLink(XsltTransformationService.TRANSFORMEDXML_DIR_NAME + "String_Node_Str" + fileName);
    classificationModel.addLink(linkModel);
  }
 catch (  TransformerException e) {
    LOG.log(Level.SEVERE,"String_Node_Str",e);
  }
}

Fixed version (ground truth):
@Override public void perform(GraphRewrite event,EvaluationContext context,XmlFileModel payload){
  setup();
  GraphContext graphContext=event.getGraphContext();
  GraphService<XsltTransformationModel> transformationService=new GraphService<>(graphContext,XsltTransformationModel.class);
  String fileName=payload.getFileName();
  fileName=StringUtils.replace(fileName,"String_Node_Str","String_Node_Str");
  fileName=fileName + extension;
  XsltTransformationService xsltTransformationService=new XsltTransformationService(graphContext);
  Path outputPath=xsltTransformationService.getTransformedXSLTPath();
  Path resultPath=outputPath.resolve(fileName);
  Source xmlSource=new DOMSource(payload.asDocument());
  Result xmlResult=new StreamResult(resultPath.toFile());
  try {
    xsltTransformer.transform(xmlSource,xmlResult);
    XsltTransformationModel transformation=transformationService.create();
    transformation.setDescription(description);
    transformation.setEffort(effort);
    transformation.setExtension(extension);
    transformation.setSourceLocation(template);
    transformation.setSourceFile(payload);
    transformation.setResult(fileName);
    ClassificationService classificationService=new ClassificationService(graphContext);
    ClassificationModel classificationModel=classificationService.create();
    classificationModel.setClassifiation("String_Node_Str" + description);
    classificationModel.setEffort(effort);
    classificationModel.addFileModel(payload);
    GraphService<LinkModel> linkService=new GraphService<>(graphContext,LinkModel.class);
    LinkModel linkModel=linkService.create();
    linkModel.setDescription(description);
    linkModel.setLink(XsltTransformationService.TRANSFORMEDXML_DIR_NAME + "String_Node_Str" + fileName);
    classificationModel.addLink(linkModel);
  }
 catch (  TransformerException e) {
    LOG.log(Level.SEVERE,"String_Node_Str",e);
  }
}