Program: 109545
Project: 109545
Buggy source:
@Override public Result execute(UIExecutionContext context) throws Exception {
  WindupConfiguration windupConfiguration=new WindupConfiguration();
  for (  WindupOptionAndInput pair : this.inputOptions) {
    String key=pair.option.getName();
    Object value=getValueForInput(pair.input);
    windupConfiguration.setOptionValue(key,value);
  }
  Path userRulesDir=WindupPathUtil.getWindupUserRulesDir();
  windupConfiguration.addUserRulesDirectory(userRulesDir);
  Path windupHomeRulesDir=WindupPathUtil.getWindupHomeRules();
  windupConfiguration.addUserRulesDirectory(windupHomeRulesDir);
  boolean overwrite=this.overwrite.getValue();
  if (!overwrite && pathNotEmpty(windupConfiguration.getOutputDirectory().toFile())) {
    String promptMsg="String_Node_Str" + windupConfiguration.getOutputDirectory().toString() + "String_Node_Str";
    if (!context.getPrompt().promptBoolean(promptMsg)) {
      return Results.fail("String_Node_Str");
    }
  }
  FileUtils.deleteQuietly(windupConfiguration.getOutputDirectory().toFile());
  Path graphPath=windupConfiguration.getOutputDirectory().resolve("String_Node_Str");
  try (GraphContext graphContext=graphContextFactory.create(graphPath)){
    UIProgressMonitor uiProgressMonitor=context.getProgressMonitor();
    WindupProgressMonitor progressMonitor=new WindupProgressMonitorAdapter(uiProgressMonitor);
    windupConfiguration.setProgressMonitor(progressMonitor).setGraphContext(graphContext);
    processor.execute(windupConfiguration);
    uiProgressMonitor.done();
    return Results.success("String_Node_Str" + windupConfiguration.getOutputDirectory().toAbsolutePath() + "String_Node_Str");
  }
 }

Fixed version (ground truth):
@Override public Result execute(UIExecutionContext context) throws Exception {
  WindupConfiguration windupConfiguration=new WindupConfiguration();
  for (  WindupOptionAndInput pair : this.inputOptions) {
    String key=pair.option.getName();
    Object value=getValueForInput(pair.input);
    windupConfiguration.setOptionValue(key,value);
  }
  Path userRulesDir=WindupPathUtil.getWindupUserRulesDir();
  if (!Files.isDirectory(userRulesDir)) {
    Files.createDirectories(userRulesDir);
  }
  windupConfiguration.addDefaultUserRulesDirectory(userRulesDir);
  Path windupHomeRulesDir=WindupPathUtil.getWindupHomeRules();
  if (!Files.isDirectory(windupHomeRulesDir)) {
    Files.createDirectories(windupHomeRulesDir);
  }
  windupConfiguration.addDefaultUserRulesDirectory(windupHomeRulesDir);
  boolean overwrite=this.overwrite.getValue();
  if (!overwrite && pathNotEmpty(windupConfiguration.getOutputDirectory().toFile())) {
    String promptMsg="String_Node_Str" + windupConfiguration.getOutputDirectory().toString() + "String_Node_Str";
    if (!context.getPrompt().promptBoolean(promptMsg)) {
      return Results.fail("String_Node_Str");
    }
  }
  context.getUIContext().getAttributeMap().put(WindupConfiguration.class,windupConfiguration);
  FileUtils.deleteQuietly(windupConfiguration.getOutputDirectory().toFile());
  Path graphPath=windupConfiguration.getOutputDirectory().resolve("String_Node_Str");
  try (GraphContext graphContext=graphContextFactory.create(graphPath)){
    UIProgressMonitor uiProgressMonitor=context.getProgressMonitor();
    WindupProgressMonitor progressMonitor=new WindupProgressMonitorAdapter(uiProgressMonitor);
    windupConfiguration.setProgressMonitor(progressMonitor).setGraphContext(graphContext);
    processor.execute(windupConfiguration);
    uiProgressMonitor.done();
    return Results.success("String_Node_Str" + windupConfiguration.getOutputDirectory().toAbsolutePath() + "String_Node_Str");
  }
 }