Program: 139928
Project: 139928
Buggy source:
public boolean createDQStructure(){
  Shell shell=PlatformUI.getWorkbench().getDisplay().getActiveShell();
  Plugin plugin=CorePlugin.getDefault();
  try {
    IProject rootProject=this.createNewProject(org.talend.dataquality.PluginConstant.getRootProjectName(),shell);
    IFolder dataProfilingFolder=this.createNewFoler(rootProject,getDataProfiling());
    IFolder createNewFoler=this.createNewFoler(dataProfilingFolder,ANALYSIS);
    createNewFoler.setPersistentProperty(FOLDER_CLASSIFY_KEY,ANALYSIS_FOLDER_PROPERTY);
    createNewFoler=this.createNewFoler(dataProfilingFolder,REPORTS);
    createNewFoler.setPersistentProperty(FOLDER_CLASSIFY_KEY,REPORT_FOLDER_PROPERTY);
    IFolder librariesFoler=this.createNewFoler(rootProject,getLibraries());
    createNewFoler=this.createNewFoler(librariesFoler,PATTERNS);
    createNewFoler.setPersistentProperty(FOLDER_CLASSIFY_KEY,PATTERNS_FOLDER_PROPERTY);
    WorkspaceVersionHelper.storeVersion();
    this.copyFilesToFolder(plugin,PATTERN_PATH,true,createNewFoler,null);
    createNewFoler=this.createNewFoler(librariesFoler,SQL_PATTERNS);
    createNewFoler.setPersistentProperty(FOLDER_CLASSIFY_KEY,SQLPATTERNS_FOLDER_PROPERTY);
    this.copyFilesToFolder(plugin,SQL_LIKE_PATH,true,createNewFoler,null);
    createNewFoler=this.createNewFoler(librariesFoler,SOURCE_FILES);
    createNewFoler.setPersistentProperty(FOLDER_CLASSIFY_KEY,SOURCEFILES_FOLDER_PROPERTY);
    this.copyFilesToFolder(plugin,DEMO_PATH,true,createNewFoler,null);
    createNewFoler=this.createNewFoler(librariesFoler,DQ_RULES);
    createNewFoler.setPersistentProperty(FOLDER_CLASSIFY_KEY,DQRULES_FOLDER_PROPERTY);
    this.copyFilesToFolder(plugin,DQ_RULES_PATH,true,createNewFoler,null);
    createNewFoler=this.createNewFoler(librariesFoler,EXCHANGE);
    createNewFoler.setPersistentProperty(FOLDER_CLASSIFY_KEY,EXCHANGE_FOLDER_PROPERTY);
    createNewFoler.setPersistentProperty(DQStructureManager.NO_SUBFOLDER_KEY,DQStructureManager.NO_SUBFOLDER_PROPERTY);
    checkJRXMLFolderExist();
    IFolder metadataFolder=this.createNewFoler(rootProject,getMetaData());
    createNewFoler=this.createNewFoler(metadataFolder,DB_CONNECTIONS);
    createNewFoler.setPersistentProperty(FOLDER_CLASSIFY_KEY,DBCONNECTION_FOLDER_PROPERTY);
  }
 catch (  Exception ex) {
    ExceptionHandler.process(ex);
    return false;
  }
  return true;
}

Fixed version (ground truth):
public boolean createDQStructure(){
  Plugin plugin=CorePlugin.getDefault();
  try {
    IProject rootProject=createNewProject(org.talend.dataquality.PluginConstant.getRootProjectName());
    IFolder dataProfilingFolder=this.createNewFoler(rootProject,getDataProfiling());
    IFolder createNewFoler=this.createNewFoler(dataProfilingFolder,ANALYSIS);
    createNewFoler.setPersistentProperty(FOLDER_CLASSIFY_KEY,ANALYSIS_FOLDER_PROPERTY);
    createNewFoler=this.createNewFoler(dataProfilingFolder,REPORTS);
    createNewFoler.setPersistentProperty(FOLDER_CLASSIFY_KEY,REPORT_FOLDER_PROPERTY);
    IFolder librariesFoler=this.createNewFoler(rootProject,getLibraries());
    createNewFoler=this.createNewFoler(librariesFoler,PATTERNS);
    createNewFoler.setPersistentProperty(FOLDER_CLASSIFY_KEY,PATTERNS_FOLDER_PROPERTY);
    WorkspaceVersionHelper.storeVersion();
    this.copyFilesToFolder(plugin,PATTERN_PATH,true,createNewFoler,null);
    createNewFoler=this.createNewFoler(librariesFoler,SQL_PATTERNS);
    createNewFoler.setPersistentProperty(FOLDER_CLASSIFY_KEY,SQLPATTERNS_FOLDER_PROPERTY);
    this.copyFilesToFolder(plugin,SQL_LIKE_PATH,true,createNewFoler,null);
    createNewFoler=this.createNewFoler(librariesFoler,SOURCE_FILES);
    createNewFoler.setPersistentProperty(FOLDER_CLASSIFY_KEY,SOURCEFILES_FOLDER_PROPERTY);
    this.copyFilesToFolder(plugin,DEMO_PATH,true,createNewFoler,null);
    createNewFoler=this.createNewFoler(librariesFoler,DQ_RULES);
    createNewFoler.setPersistentProperty(FOLDER_CLASSIFY_KEY,DQRULES_FOLDER_PROPERTY);
    this.copyFilesToFolder(plugin,DQ_RULES_PATH,true,createNewFoler,null);
    createNewFoler=this.createNewFoler(librariesFoler,EXCHANGE);
    createNewFoler.setPersistentProperty(FOLDER_CLASSIFY_KEY,EXCHANGE_FOLDER_PROPERTY);
    createNewFoler.setPersistentProperty(DQStructureManager.NO_SUBFOLDER_KEY,DQStructureManager.NO_SUBFOLDER_PROPERTY);
    checkJRXMLFolderExist();
    IFolder metadataFolder=this.createNewFoler(rootProject,getMetaData());
    createNewFoler=this.createNewFoler(metadataFolder,DB_CONNECTIONS);
    createNewFoler.setPersistentProperty(FOLDER_CLASSIFY_KEY,DBCONNECTION_FOLDER_PROPERTY);
  }
 catch (  Exception ex) {
    ExceptionHandler.process(ex);
    return false;
  }
  return true;
}