Program: 122191
Project: 122191
Buggy source:
private Manifest getManifest(ExportFileResource libResource,List<ProcessItem> itemToBeExport,String bundleName) throws IOException {
  Analyzer analyzer=new Analyzer();
  Jar bin=new Jar(classesLocation);
  analyzer.setJar(bin);
  String symbolicName=bundleName;
  Project project=ProjectManager.getInstance().getCurrentProject();
  if (project != null) {
    String proName=project.getLabel();
    if (proName != null) {
      symbolicName=proName.toLowerCase() + '.' + symbolicName;
    }
  }
  analyzer.setProperty(Analyzer.BUNDLE_NAME,bundleName);
  analyzer.setProperty(Analyzer.BUNDLE_SYMBOLICNAME,symbolicName);
  analyzer.setProperty(Analyzer.BUNDLE_VERSION,getBundleVersion());
  IBrandingService brandingService=(IBrandingService)GlobalServiceRegister.getDefault().getService(IBrandingService.class);
  analyzer.setProperty(Analyzer.BUNDLE_VENDOR,brandingService.getFullProductName() + "String_Node_Str" + brandingService.getAcronym()+ "String_Node_Str"+ RepositoryPlugin.getDefault().getBundle().getVersion().toString()+ "String_Node_Str");
  String importPackages="String_Node_Str";
  StringBuilder sb=new StringBuilder();
  String delim="String_Node_Str";
  for (  ProcessItem pi : itemToBeExport) {
    sb.append(delim).append(getPackageName(pi));
    delim="String_Node_Str";
    if (ROUTE.equals(itemType)) {
      String routeResourcePackages=addRouteResourcePackages(pi);
      if (!routeResourcePackages.isEmpty()) {
        sb.append(delim).append(routeResourcePackages);
      }
    }
 else {
      NodeType restRequestComponent=getRESTRequestComponent(pi);
      if (null != restRequestComponent && "String_Node_Str".equals(importPackages) && EmfModelUtils.computeCheckElementValue("String_Node_Str",restRequestComponent)) {
        importPackages="String_Node_Str";
      }
    }
  }
  analyzer.setProperty(Analyzer.EXPORT_PACKAGE,sb.toString());
  if (ROUTE.equals(itemType)) {
    addRouteOsgiDependencies(analyzer,libResource,itemToBeExport);
  }
 else {
    importPackages+="String_Node_Str";
    analyzer.setProperty(Analyzer.IMPORT_PACKAGE,importPackages);
  }
  StringBuilder bundleClasspath=new StringBuilder("String_Node_Str");
  Set<String> relativePathList=libResource.getRelativePathList();
  for (  String path : relativePathList) {
    Set<URL> resources=libResource.getResourcesByRelativePath(path);
    for (    URL url : resources) {
      File dependencyFile=new File(url.getPath());
      String relativePath=libResource.getDirectoryName() + PATH_SEPARATOR + dependencyFile.getName();
      bundleClasspath.append(',').append(relativePath);
      bin.putResource(relativePath,new FileResource(dependencyFile));
    }
  }
  analyzer.setProperty(Analyzer.BUNDLE_CLASSPATH,bundleClasspath.toString());
  analyzer.setProperty(Analyzer.EXPORT_SERVICE,"String_Node_Str" + bundleName + "String_Node_Str"+ itemType);
  Manifest manifest=null;
  try {
    manifest=analyzer.calcManifest();
  }
 catch (  IOException e) {
    throw e;
  }
catch (  Exception e) {
    ExceptionHandler.process(e);
  }
 finally {
    analyzer.close();
  }
  return manifest;
}

Fixed version (ground truth):
private Manifest getManifest(ExportFileResource libResource,List<ProcessItem> itemToBeExport,String bundleName) throws IOException {
  Analyzer analyzer=new Analyzer();
  Jar bin=new Jar(classesLocation);
  analyzer.setJar(bin);
  String symbolicName=bundleName;
  Project project=ProjectManager.getInstance().getCurrentProject();
  if (project != null) {
    String proName=project.getLabel();
    if (proName != null) {
      symbolicName=proName.toLowerCase() + '.' + symbolicName;
    }
  }
  analyzer.setProperty(Analyzer.BUNDLE_NAME,bundleName);
  analyzer.setProperty(Analyzer.BUNDLE_SYMBOLICNAME,symbolicName);
  analyzer.setProperty(Analyzer.BUNDLE_VERSION,getBundleVersion());
  IBrandingService brandingService=(IBrandingService)GlobalServiceRegister.getDefault().getService(IBrandingService.class);
  analyzer.setProperty(Analyzer.BUNDLE_VENDOR,brandingService.getFullProductName() + "String_Node_Str" + brandingService.getAcronym()+ "String_Node_Str"+ RepositoryPlugin.getDefault().getBundle().getVersion().toString()+ "String_Node_Str");
  String importPackages="String_Node_Str";
  StringBuilder sb=new StringBuilder();
  String delim="String_Node_Str";
  for (  ProcessItem pi : itemToBeExport) {
    sb.append(delim).append(getPackageName(pi));
    delim="String_Node_Str";
    if (ROUTE.equals(itemType)) {
      String routeResourcePackages=addRouteResourcePackages(pi);
      if (!routeResourcePackages.isEmpty()) {
        sb.append(delim).append(routeResourcePackages);
      }
    }
 else {
      NodeType restRequestComponent=getRESTRequestComponent(pi);
      if (null != restRequestComponent && "String_Node_Str".equals(importPackages) && EmfModelUtils.computeCheckElementValue("String_Node_Str",restRequestComponent)) {
        importPackages="String_Node_Str";
      }
    }
  }
  analyzer.setProperty(Analyzer.EXPORT_PACKAGE,sb.toString());
  if (ROUTE.equals(itemType)) {
    addRouteOsgiDependencies(analyzer,libResource,itemToBeExport);
  }
 else {
    importPackages+="String_Node_Str";
    analyzer.setProperty(Analyzer.IMPORT_PACKAGE,importPackages);
  }
  StringBuilder bundleClasspath=new StringBuilder("String_Node_Str");
  Set<String> relativePathList=libResource.getRelativePathList();
  for (  String path : relativePathList) {
    Set<URL> resources=libResource.getResourcesByRelativePath(path);
    for (    URL url : resources) {
      File dependencyFile=new File(FilesUtils.getFileRealPath(url.getPath()));
      String relativePath=libResource.getDirectoryName() + PATH_SEPARATOR + dependencyFile.getName();
      bundleClasspath.append(',').append(relativePath);
      bin.putResource(relativePath,new FileResource(dependencyFile));
    }
  }
  analyzer.setProperty(Analyzer.BUNDLE_CLASSPATH,bundleClasspath.toString());
  analyzer.setProperty(Analyzer.EXPORT_SERVICE,"String_Node_Str" + bundleName + "String_Node_Str"+ itemType);
  Manifest manifest=null;
  try {
    manifest=analyzer.calcManifest();
  }
 catch (  IOException e) {
    throw e;
  }
catch (  Exception e) {
    ExceptionHandler.process(e);
  }
 finally {
    analyzer.close();
  }
  return manifest;
}