Program: 141810
Project: 141810
Buggy source:
private void initialize(){
  Map<String,Set<ExBundleClasspath>> exClasspaths=ExtensionPointsReader.INSTANCE.getBundleClasspaths();
  Map<String,Set<ExImportPackage>> exImportPackages=ExtensionPointsReader.INSTANCE.getComponentImportPackages();
  Map<String,Set<ExRequireBundle>> exRequireBundles=ExtensionPointsReader.INSTANCE.getComponentRequireBundles();
  Set<ExRequireBundle> requireBundlesForAll=ExtensionPointsReader.INSTANCE.getRequireBundlesForAll();
  Set<ExImportPackage> importPackagesForAll=ExtensionPointsReader.INSTANCE.getImportPackagesForAll();
  for (  ExRequireBundle rb : requireBundlesForAll) {
    bundles.add(rb.toTargetIgnorePredicates());
  }
  for (  ExImportPackage ip : importPackagesForAll) {
    packages.add(ip.toTargetIgnorePredicates());
  }
  String projectFolderName=JavaResourcesHelper.getProjectFolderName(item);
  for (  Object o : nodes) {
    if (!(o instanceof NodeType)) {
      continue;
    }
    NodeType n=(NodeType)o;
    String componentName=n.getComponentName();
    Set<ExBundleClasspath> bcs=exClasspaths.get(componentName);
    if (bcs != null) {
      for (      ExBundleClasspath bc : bcs) {
        Set<BundleClasspath> targets=bc.toTargets(n);
        classpaths.addAll(targets);
      }
    }
    Set<ExImportPackage> ips=exImportPackages.get(componentName);
    if (ips != null) {
      for (      ExImportPackage ip : ips) {
        Set<ImportPackage> targets=ip.toTargets(n);
        packages.addAll(targets);
      }
    }
    Set<ExRequireBundle> rbs=exRequireBundles.get(componentName);
    if (rbs != null) {
      for (      ExRequireBundle rb : rbs) {
        Set<RequireBundle> targets=rb.toTargets(n);
        bundles.addAll(targets);
      }
    }
    if ("String_Node_Str".equals(componentName)) {
      String jobId=null;
      String jobVersion=null;
      String jobName=null;
      EList parameters=n.getElementParameter();
      for (      Object p : parameters) {
        if (!(p instanceof ElementParameterType)) {
          continue;
        }
        ElementParameterType ept=(ElementParameterType)p;
        String eptName=ept.getName();
        System.out.println(eptName);
        if ("String_Node_Str".equals(eptName) && "String_Node_Str".equals(ept.getValue())) {
          jobName=null;
          break;
        }
        if (jobId == null && "String_Node_Str".equals(eptName)) {
          jobId=ept.getValue();
        }
        if (jobVersion == null && "String_Node_Str".equals(eptName)) {
          jobVersion=ept.getValue();
        }
        if (jobName == null && "String_Node_Str".equals(eptName)) {
          jobName=ept.getValue();
        }
      }
      if ("String_Node_Str".equals(jobVersion) && jobId != null) {
        try {
          jobVersion=ProxyRepositoryFactory.getInstance().getLastVersion(jobId).getVersion();
        }
 catch (        Exception e) {
          jobVersion=null;
        }
      }
 else {
        jobVersion=null;
      }
      if (jobName != null && jobVersion != null) {
        String jobFolderName=JavaResourcesHelper.getJobFolderName(jobName,jobVersion);
        ImportPackage importPackage=new ImportPackage();
        importPackage.setBuiltIn(true);
        importPackage.setName(projectFolderName + "String_Node_Str" + jobFolderName);
        packages.add(importPackage);
      }
    }
  }
  exClasspaths=null;
  exImportPackages=null;
  exRequireBundles=null;
}

Fixed version (ground truth):
private void initialize(){
  Map<String,Set<ExBundleClasspath>> exClasspaths=ExtensionPointsReader.INSTANCE.getBundleClasspaths();
  Map<String,Set<ExImportPackage>> exImportPackages=ExtensionPointsReader.INSTANCE.getComponentImportPackages();
  Map<String,Set<ExRequireBundle>> exRequireBundles=ExtensionPointsReader.INSTANCE.getComponentRequireBundles();
  Set<ExRequireBundle> requireBundlesForAll=ExtensionPointsReader.INSTANCE.getRequireBundlesForAll();
  Set<ExImportPackage> importPackagesForAll=ExtensionPointsReader.INSTANCE.getImportPackagesForAll();
  for (  ExRequireBundle rb : requireBundlesForAll) {
    bundles.add(rb.toTargetIgnorePredicates());
  }
  for (  ExImportPackage ip : importPackagesForAll) {
    packages.add(ip.toTargetIgnorePredicates());
  }
  String projectFolderName=JavaResourcesHelper.getProjectFolderName(item);
  for (  Object o : nodes) {
    if (!(o instanceof NodeType)) {
      continue;
    }
    NodeType n=(NodeType)o;
    String componentName=n.getComponentName();
    Set<ExBundleClasspath> bcs=exClasspaths.get(componentName);
    if (bcs != null) {
      for (      ExBundleClasspath bc : bcs) {
        Set<BundleClasspath> targets=bc.toTargets(n);
        classpaths.addAll(targets);
      }
    }
    Set<ExImportPackage> ips=exImportPackages.get(componentName);
    if (ips != null) {
      for (      ExImportPackage ip : ips) {
        Set<ImportPackage> targets=ip.toTargets(n);
        packages.addAll(targets);
      }
    }
    Set<ExRequireBundle> rbs=exRequireBundles.get(componentName);
    if (rbs != null) {
      for (      ExRequireBundle rb : rbs) {
        Set<RequireBundle> targets=rb.toTargets(n);
        bundles.addAll(targets);
      }
    }
    if ("String_Node_Str".equals(componentName)) {
      String jobId=null;
      String jobVersion=null;
      String jobName=null;
      EList<?> parameters=n.getElementParameter();
      for (      Object p : parameters) {
        if (!(p instanceof ElementParameterType)) {
          continue;
        }
        ElementParameterType ept=(ElementParameterType)p;
        String eptName=ept.getName();
        System.out.println(eptName);
        if ("String_Node_Str".equals(eptName) && "String_Node_Str".equals(ept.getValue())) {
          jobName=null;
          break;
        }
        if (jobId == null && "String_Node_Str".equals(eptName)) {
          jobId=ept.getValue();
        }
        if (jobVersion == null && "String_Node_Str".equals(eptName)) {
          jobVersion=ept.getValue();
        }
        if (jobName == null && "String_Node_Str".equals(eptName)) {
          jobName=ept.getValue();
        }
      }
      if ("String_Node_Str".equals(jobVersion) && jobId != null) {
        try {
          jobVersion=ProxyRepositoryFactory.getInstance().getLastVersion(jobId).getVersion();
        }
 catch (        Exception e) {
          jobVersion=null;
        }
      }
 else {
        jobVersion=null;
      }
      if (jobName != null && jobVersion != null) {
        String jobFolderName=JavaResourcesHelper.getJobFolderName(jobName,jobVersion);
        ImportPackage importPackage=new ImportPackage();
        importPackage.setBuiltIn(true);
        importPackage.setName(projectFolderName + "String_Node_Str" + jobFolderName);
        packages.add(importPackage);
      }
    }
  }
  exClasspaths=null;
  exImportPackages=null;
  exRequireBundles=null;
}