Program: 85423
Project: 85423
Buggy source:
private Properties getAppFuseProperties(){
  log("String_Node_Str");
  URL pomLocation=null;
  File newDir=new File("String_Node_Str","String_Node_Str");
  if (!newDir.exists()) {
    newDir.mkdirs();
  }
  File pom=new File("String_Node_Str");
  try {
    pomLocation=new URL(trunk + tag + "String_Node_Str");
  }
 catch (  MalformedURLException e) {
    e.printStackTrace();
  }
  Get get=(Get)AntUtils.createProject().createTask("String_Node_Str");
  get.setSrc(pomLocation);
  get.setDest(pom);
  get.setUsername("String_Node_Str");
  get.setPassword("String_Node_Str");
  get.execute();
  MavenEmbedder maven=new MavenEmbedder();
  maven.setOffline(true);
  maven.setClassLoader(Thread.currentThread().getContextClassLoader());
  maven.setLogger(new MavenEmbedderConsoleLogger());
  MavenProject p=null;
  try {
    maven.start();
    p=maven.readProjectWithDependencies(pom);
    maven.stop();
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  Properties props=p.getOriginalModel().getProperties();
  Properties projectProperties=project.getOriginalModel().getProperties();
  Properties newProperties=new Properties();
  List<String> webDependencies=new ArrayList<String>();
  webDependencies.addAll(JSF_PROPERTIES);
  webDependencies.addAll(SPRING_PROPERTIES);
  webDependencies.addAll(STRUTS_PROPERTIES);
  webDependencies.addAll(TAPESTRY_PROPERTIES);
  for (  Object o : props.keySet()) {
    String key=(String)o;
    if (!projectProperties.containsKey(key)) {
      newProperties.put(key,props.getProperty(key));
    }
  }
  for (  String key : webDependencies) {
    newProperties.remove(key + "String_Node_Str");
  }
  newProperties.remove("String_Node_Str");
  newProperties.remove("String_Node_Str");
  newProperties.remove("String_Node_Str");
  if (webFramework.equalsIgnoreCase("String_Node_Str")) {
    for (    String key : JSF_PROPERTIES) {
      key+="String_Node_Str";
      newProperties.put(key,props.getProperty(key));
    }
  }
 else   if (webFramework.equalsIgnoreCase("String_Node_Str")) {
    for (    String key : SPRING_PROPERTIES) {
      key+="String_Node_Str";
      newProperties.put(key,props.getProperty(key));
    }
  }
 else   if (webFramework.equalsIgnoreCase("String_Node_Str")) {
    for (    String key : STRUTS_PROPERTIES) {
      key+="String_Node_Str";
      newProperties.put(key,props.getProperty(key));
    }
  }
 else   if (webFramework.equalsIgnoreCase("String_Node_Str")) {
    for (    String key : TAPESTRY_PROPERTIES) {
      key+="String_Node_Str";
      newProperties.put(key,props.getProperty(key));
    }
  }
  newProperties.put(getDaoFramework() + "String_Node_Str",props.getProperty(getDaoFramework() + "String_Node_Str"));
  return newProperties;
}

Fixed version (ground truth):
private Properties getAppFuseProperties(){
  log("String_Node_Str");
  URL pomLocation=null;
  File newDir=new File("String_Node_Str","String_Node_Str");
  if (!newDir.exists()) {
    newDir.mkdirs();
  }
  File pom=new File("String_Node_Str");
  try {
    pomLocation=new URL(trunk + tag + "String_Node_Str");
  }
 catch (  MalformedURLException e) {
    e.printStackTrace();
  }
  Get get=(Get)AntUtils.createProject().createTask("String_Node_Str");
  get.setSrc(pomLocation);
  get.setDest(pom);
  get.setUsername("String_Node_Str");
  get.setPassword("String_Node_Str");
  get.execute();
  MavenEmbedder maven=new MavenEmbedder();
  maven.setOffline(true);
  maven.setClassLoader(Thread.currentThread().getContextClassLoader());
  maven.setLogger(new MavenEmbedderConsoleLogger());
  MavenProject p=null;
  try {
    maven.start();
    p=maven.readProjectWithDependencies(pom);
    maven.stop();
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  Properties props=p.getOriginalModel().getProperties();
  Properties projectProperties=project.getOriginalModel().getProperties();
  Properties newProperties=new Properties();
  List<String> webDependencies=new ArrayList<String>();
  webDependencies.addAll(JSF_PROPERTIES);
  webDependencies.addAll(SPRING_PROPERTIES);
  webDependencies.addAll(STRUTS_PROPERTIES);
  webDependencies.addAll(TAPESTRY_PROPERTIES);
  for (  Object o : props.keySet()) {
    String key=(String)o;
    if (!projectProperties.containsKey(key)) {
      newProperties.put(key,props.getProperty(key));
    }
  }
  for (  String key : webDependencies) {
    newProperties.remove(key + "String_Node_Str");
  }
  newProperties.remove("String_Node_Str");
  newProperties.remove("String_Node_Str");
  newProperties.remove("String_Node_Str");
  if (webFramework.equalsIgnoreCase("String_Node_Str")) {
    for (    String key : JSF_PROPERTIES) {
      key+="String_Node_Str";
      newProperties.put(key,props.getProperty(key));
    }
  }
 else   if (webFramework.equalsIgnoreCase("String_Node_Str")) {
    for (    String key : SPRING_PROPERTIES) {
      key+="String_Node_Str";
      newProperties.put(key,props.getProperty(key));
    }
  }
 else   if (webFramework.equalsIgnoreCase("String_Node_Str")) {
    for (    String key : STRUTS_PROPERTIES) {
      key+="String_Node_Str";
      newProperties.put(key,props.getProperty(key));
    }
  }
 else   if (webFramework.equalsIgnoreCase("String_Node_Str")) {
    for (    String key : TAPESTRY_PROPERTIES) {
      key+="String_Node_Str";
      newProperties.put(key,props.getProperty(key));
    }
  }
  newProperties.put(getDaoFramework() + "String_Node_Str",props.getProperty(getDaoFramework() + "String_Node_Str"));
  if (daoFramework.equalsIgnoreCase("String_Node_Str")) {
    newProperties.put("String_Node_Str",props.getProperty("String_Node_Str"));
  }
  return newProperties;
}