Program: 10096
Project: 10096
Buggy source:
@SuppressWarnings("String_Node_Str") protected void setUp() throws MojoExecutionException, MojoFailureException {
  if (docSources == null) {
    docSources=MavenUtils.getSourcePaths(build);
  }
  libraries=new ArrayList<File>();
  for (  Artifact artifact : MavenUtils.getDependencyArtifacts(project,resolver,localRepository,remoteRepositories,artifactMetadataSource)) {
    libraries.add(artifact.getFile());
  }
  if (output == null) {
    output=new File(build.getDirectory(),"String_Node_Str");
    if (!output.exists()) {
      output.mkdirs();
    }
  }
  if (configFile == null) {
    List<Resource> resources=build.getResources();
    for (    Resource resource : resources) {
      File cfg=new File(resource.getDirectory(),getConfigFileName());
      if (cfg.exists()) {
        configFile=cfg;
        break;
      }
    }
  }
  if (configFile == null) {
    URL url=getClass().getResource("String_Node_Str" + getConfigFileName());
    configFile=new File(build.getDirectory(),getConfigFileName());
    try {
      FileUtils.copyURLToFile(url,configFile);
    }
 catch (    IOException e) {
      throw new MojoExecutionException("String_Node_Str");
    }
  }
  if (!configFile.exists()) {
    throw new MojoExecutionException("String_Node_Str" + configFile);
  }
  if (fontsSnapshot == null) {
    String os=System.getProperty("String_Node_Str").toLowerCase();
    URL url;
    if (os.contains("String_Node_Str")) {
      url=getClass().getResource("String_Node_Str");
    }
 else {
      url=getClass().getResource("String_Node_Str");
    }
    File fontsSer=new File(build.getDirectory(),"String_Node_Str");
    try {
      FileUtils.copyURLToFile(url,fontsSer);
    }
 catch (    IOException e) {
      throw new MojoExecutionException("String_Node_Str");
    }
    fontsSnapshot=fontsSer;
  }
  if (templatesPath == null) {
    templatesPath=generateDefaultTemplate();
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") protected void setUp() throws MojoExecutionException, MojoFailureException {
  if (docSources == null) {
    docSources=MavenUtils.getSourcePaths(build);
  }
  libraries=new ArrayList<File>();
  for (  Artifact artifact : MavenUtils.getDependencyArtifacts(project,resolver,localRepository,remoteRepositories,artifactMetadataSource)) {
    if ("String_Node_Str".equals(artifact.getType())) {
      libraries.add(artifact.getFile());
    }
  }
  if (output == null) {
    output=new File(build.getDirectory(),"String_Node_Str");
    if (!output.exists()) {
      output.mkdirs();
    }
  }
  if (configFile == null) {
    List<Resource> resources=build.getResources();
    for (    Resource resource : resources) {
      File cfg=new File(resource.getDirectory(),getConfigFileName());
      if (cfg.exists()) {
        configFile=cfg;
        break;
      }
    }
  }
  if (configFile == null) {
    URL url=getClass().getResource("String_Node_Str" + getConfigFileName());
    configFile=new File(build.getDirectory(),getConfigFileName());
    try {
      FileUtils.copyURLToFile(url,configFile);
    }
 catch (    IOException e) {
      throw new MojoExecutionException("String_Node_Str");
    }
  }
  if (!configFile.exists()) {
    throw new MojoExecutionException("String_Node_Str" + configFile);
  }
  if (fontsSnapshot == null) {
    String os=System.getProperty("String_Node_Str").toLowerCase();
    URL url;
    if (os.contains("String_Node_Str")) {
      url=getClass().getResource("String_Node_Str");
    }
 else {
      url=getClass().getResource("String_Node_Str");
    }
    File fontsSer=new File(build.getDirectory(),"String_Node_Str");
    try {
      FileUtils.copyURLToFile(url,fontsSer);
    }
 catch (    IOException e) {
      throw new MojoExecutionException("String_Node_Str");
    }
    fontsSnapshot=fontsSer;
  }
  if (templatesPath == null) {
    templatesPath=generateDefaultTemplate();
  }
}