Program: 85373
Project: 85373
Buggy source:
/** 
 * @see org.appfuse.mojo.HibernateExporterMojo#configureExporter(org.hibernate.tool.hbm2x.Exporter)
 */
protected Exporter configureExporter(Exporter exp) throws MojoExecutionException {
  System.setProperty("String_Node_Str",pojoName);
  getProject().addCompileSourceRoot(new File(getComponent().getOutputDirectory()).getPath());
  AppFuseExporter exporter=(AppFuseExporter)super.configureExporter(exp);
  exporter.getProperties().setProperty("String_Node_Str",getComponentProperty("String_Node_Str","String_Node_Str"));
  exporter.getProperties().setProperty("String_Node_Str",getComponentProperty("String_Node_Str","String_Node_Str"));
  if (generateCoreOnly) {
    exporter.getProperties().setProperty("String_Node_Str","String_Node_Str");
  }
 else   if (generateWebOnly) {
    exporter.getProperties().setProperty("String_Node_Str","String_Node_Str");
  }
  String rootPackage=(fullPath != null) ? fullPath : getProject().getGroupId();
  exporter.getProperties().setProperty("String_Node_Str",rootPackage);
  exporter.getProperties().setProperty("String_Node_Str",getProject().getProperties().getProperty("String_Node_Str"));
  String webFramework=(getProject().getProperties().containsKey("String_Node_Str")) ? getProject().getProperties().getProperty("String_Node_Str") : "String_Node_Str";
  exporter.getProperties().setProperty("String_Node_Str",webFramework);
  exporter.getProperties().setProperty("String_Node_Str",getProject().getPackaging());
  exporter.getProperties().setProperty("String_Node_Str",String.valueOf(genericCore));
  if (templateDirectory != null) {
    exporter.getProperties().setProperty("String_Node_Str",templateDirectory);
  }
  if (isFullSource())   exporter.getProperties().setProperty("String_Node_Str",rootPackage);
 else {
    exporter.getProperties().setProperty("String_Node_Str","String_Node_Str");
  }
  boolean hasSecurity=false;
  if (getProject().getPackaging().equals("String_Node_Str")) {
    Collection<File> sourceFiles=FileUtils.listFiles(getProject().getBasedir(),new String[]{"String_Node_Str"},true);
    for (    File file : sourceFiles) {
      if (file.getPath().contains("String_Node_Str")) {
        hasSecurity=true;
        break;
      }
    }
  }
  exporter.getProperties().setProperty("String_Node_Str",String.valueOf(hasSecurity));
  if (webFramework.equals("String_Node_Str")) {
    boolean useHome=true;
    Collection<File> sourceFiles=FileUtils.listFiles(getProject().getBasedir(),new String[]{"String_Node_Str"},true);
    for (    File file : sourceFiles) {
      if (file.getPath().contains("String_Node_Str")) {
        useHome=false;
        break;
      }
    }
    exporter.getProperties().setProperty("String_Node_Str",String.valueOf(useHome));
  }
  return exporter;
}

Fixed version (ground truth):
/** 
 * @see org.appfuse.mojo.HibernateExporterMojo#configureExporter(org.hibernate.tool.hbm2x.Exporter)
 */
protected Exporter configureExporter(Exporter exp) throws MojoExecutionException {
  System.setProperty("String_Node_Str",pojoName);
  getProject().addCompileSourceRoot(new File(getComponent().getOutputDirectory()).getPath());
  AppFuseExporter exporter=(AppFuseExporter)super.configureExporter(exp);
  exporter.getProperties().setProperty("String_Node_Str",getComponentProperty("String_Node_Str","String_Node_Str"));
  exporter.getProperties().setProperty("String_Node_Str",getComponentProperty("String_Node_Str","String_Node_Str"));
  if (generateCoreOnly) {
    exporter.getProperties().setProperty("String_Node_Str","String_Node_Str");
  }
 else   if (generateWebOnly) {
    exporter.getProperties().setProperty("String_Node_Str","String_Node_Str");
  }
  String rootPackage=(fullPath != null) ? fullPath : getProject().getGroupId();
  exporter.getProperties().setProperty("String_Node_Str",rootPackage);
  exporter.getProperties().setProperty("String_Node_Str",getProject().getProperties().getProperty("String_Node_Str"));
  String webFramework=(getProject().getProperties().containsKey("String_Node_Str")) ? getProject().getProperties().getProperty("String_Node_Str") : "String_Node_Str";
  exporter.getProperties().setProperty("String_Node_Str",webFramework);
  exporter.getProperties().setProperty("String_Node_Str",getProject().getPackaging());
  exporter.getProperties().setProperty("String_Node_Str",String.valueOf(genericCore));
  if (templateDirectory != null) {
    exporter.getProperties().setProperty("String_Node_Str",templateDirectory);
  }
  if (isFullSource())   exporter.getProperties().setProperty("String_Node_Str",rootPackage);
 else {
    exporter.getProperties().setProperty("String_Node_Str","String_Node_Str");
  }
  boolean hasSecurity=false;
  if (getProject().getPackaging().equals("String_Node_Str")) {
    Collection<File> sourceFiles=FileUtils.listFiles(getProject().getBasedir(),new String[]{"String_Node_Str"},true);
    for (    File file : sourceFiles) {
      if (file.getPath().contains("String_Node_Str")) {
        hasSecurity=true;
        break;
      }
    }
  }
  boolean isAppFuse=(getProject().getParent().getArtifactId().contains("String_Node_Str") || getProject().getParent().getParent().getGroupId().contains("String_Node_Str"));
  exporter.getProperties().setProperty("String_Node_Str",String.valueOf(isAppFuse));
  exporter.getProperties().setProperty("String_Node_Str",String.valueOf(hasSecurity));
  if (webFramework.equals("String_Node_Str")) {
    boolean useHome=true;
    Collection<File> sourceFiles=FileUtils.listFiles(getProject().getBasedir(),new String[]{"String_Node_Str"},true);
    for (    File file : sourceFiles) {
      if (file.getPath().contains("String_Node_Str")) {
        useHome=false;
        break;
      }
    }
    exporter.getProperties().setProperty("String_Node_Str",String.valueOf(useHome));
  }
  return exporter;
}