Program: 139337
Project: 139337
Buggy source:
/** 
 * DOC bZhou Comment method "createDQStructure".
 */
public void createDQStructure(){
  Plugin plugin=CorePlugin.getDefault();
  try {
    IProject project=ResourceManager.getRootProject();
    if (!project.exists()) {
      project=createNewProject(ResourceManager.getRootProjectName());
    }
    IFolder dataProfilingFolder=createNewFolder(project,EResourceConstant.DATA_PROFILING);
    IFolder analysisFoler=createNewFolder(dataProfilingFolder,EResourceConstant.ANALYSIS);
    IFolder reportFoler=createNewFolder(dataProfilingFolder,EResourceConstant.REPORTS);
    IFolder librariesFoler=createNewFolder(project,EResourceConstant.LIBRARIES);
    IFolder patternFoler=createNewFolder(librariesFoler,EResourceConstant.PATTERNS);
    IFolder patternRegexFoler=createNewFolder(patternFoler,EResourceConstant.PATTERN_REGEX);
    IFolder patternSQLFoler=createNewFolder(patternFoler,EResourceConstant.PATTERN_SQL);
    IFolder sourceFileFoler=createNewFolder(librariesFoler,EResourceConstant.SOURCE_FILES);
    IFolder rulesFoler=createNewFolder(librariesFoler,EResourceConstant.RULES);
    IFolder rulesSQLFoler=createNewFolder(rulesFoler,EResourceConstant.RULES_SQL);
    IFolder exchangeFoler=createNewFolder(librariesFoler,EResourceConstant.EXCHANGE);
    IFolder indicatorFoler=createNewFolder(librariesFoler,EResourceConstant.INDICATORS);
    IFolder udiFoler=createNewFolder(indicatorFoler,EResourceConstant.USER_DEFINED_INDICATORS);
    IFolder jrxmlFolder=createNewFolder(librariesFoler,EResourceConstant.JRXML_TEMPLATE);
    IFolder metadataFolder=createNewFolder(project,EResourceConstant.METADATA);
    IFolder connectionFolder=createNewFolder(metadataFolder,EResourceConstant.DB_CONNECTIONS);
    IFolder mdmConnectionFolder=createNewFolder(metadataFolder,EResourceConstant.MDM_CONNECTIONS);
    copyFilesToFolder(plugin,PATTERN_PATH,true,patternRegexFoler,null);
    copyFilesToFolder(plugin,SQL_LIKE_PATH,true,patternSQLFoler,null);
    copyFilesToFolder(plugin,DEMO_PATH,true,sourceFileFoler,null);
    copyFilesToFolder(plugin,RULES_PATH,true,rulesSQLFoler,null);
    WorkspaceVersionHelper.storeVersion();
  }
 catch (  Exception ex) {
    ExceptionHandler.process(ex);
    ProxyRepositoryManager.getInstance().save();
  }
}

Fixed version (ground truth):
/** 
 * DOC bZhou Comment method "createDQStructure".
 */
public void createDQStructure(){
  Plugin plugin=CorePlugin.getDefault();
  try {
    IProject project=ResourceManager.getRootProject();
    if (!project.exists()) {
      project=createNewProject(ResourceManager.getRootProjectName());
    }
    IFolder dataProfilingFolder=createNewFolder(project,EResourceConstant.DATA_PROFILING);
    IFolder analysisFoler=createNewFolder(dataProfilingFolder,EResourceConstant.ANALYSIS);
    IFolder reportFoler=createNewFolder(dataProfilingFolder,EResourceConstant.REPORTS);
    IFolder librariesFoler=createNewFolder(project,EResourceConstant.LIBRARIES);
    IFolder patternFoler=createNewFolder(librariesFoler,EResourceConstant.PATTERNS);
    IFolder patternRegexFoler=createNewFolder(patternFoler,EResourceConstant.PATTERN_REGEX);
    IFolder patternSQLFoler=createNewFolder(patternFoler,EResourceConstant.PATTERN_SQL);
    IFolder sourceFileFoler=createNewFolder(librariesFoler,EResourceConstant.SOURCE_FILES);
    IFolder rulesFoler=createNewFolder(librariesFoler,EResourceConstant.RULES);
    IFolder rulesSQLFoler=createNewFolder(rulesFoler,EResourceConstant.RULES_SQL);
    IFolder exchangeFoler=createNewFolder(librariesFoler,EResourceConstant.EXCHANGE);
    IFolder indicatorFoler=createNewFolder(librariesFoler,EResourceConstant.INDICATORS);
    IFolder udiFoler=createNewFolder(indicatorFoler,EResourceConstant.USER_DEFINED_INDICATORS);
    IFolder jrxmlFolder=createNewFolder(librariesFoler,EResourceConstant.JRXML_TEMPLATE);
    IFolder metadataFolder=createNewFolder(project,EResourceConstant.METADATA);
    IFolder connectionFolder=createNewFolder(metadataFolder,EResourceConstant.DB_CONNECTIONS);
    IFolder mdmConnectionFolder=createNewFolder(metadataFolder,EResourceConstant.MDM_CONNECTIONS);
    copyFilesToFolder(plugin,PATTERN_PATH,true,patternRegexFoler,null);
    copyFilesToFolder(plugin,SQL_LIKE_PATH,true,patternSQLFoler,null);
    copyFilesToFolder(plugin,DEMO_PATH,true,sourceFileFoler,null);
    copyFilesToFolder(plugin,RULES_PATH,true,rulesSQLFoler,null);
    WorkspaceVersionHelper.storeVersion();
    ResourceService.refreshStructure();
  }
 catch (  Exception ex) {
    ExceptionHandler.process(ex);
    ProxyRepositoryManager.getInstance().save();
  }
}