Program: 138678
Project: 138678
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 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 indicatorFoler=createNewFolder(librariesFoler,EResourceConstant.INDICATORS);
    IFolder systemIndicatorFoler=createNewFolder(indicatorFoler,EResourceConstant.SYSTEM_INDICATORS);
    if (!project.getFolder(EResourceConstant.DB_CONNECTIONS.getPath()).exists()) {
      ProxyRepositoryFactory.getInstance().createFolder(ERepositoryObjectType.METADATA,Path.EMPTY,EResourceConstant.DB_CONNECTIONS.getName());
    }
    if (!project.getFolder(EResourceConstant.MDM_CONNECTIONS.getPath()).exists()) {
      ProxyRepositoryFactory.getInstance().createFolder(ERepositoryObjectType.METADATA,Path.EMPTY,EResourceConstant.MDM_CONNECTIONS.getName());
    }
    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);
    copyFilesToFolder(plugin,SYSTEM_INDICATOR_PATH,true,systemIndicatorFoler,null);
    WorkspaceVersionHelper.storeVersion();
    ResourceService.refreshStructure();
  }
 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 indicatorFoler=createNewFolder(librariesFoler,EResourceConstant.INDICATORS);
    IFolder systemIndicatorFoler=createNewFolder(indicatorFoler,EResourceConstant.SYSTEM_INDICATORS);
    if (!project.getFolder(EResourceConstant.DB_CONNECTIONS.getPath()).exists()) {
      ProxyRepositoryFactory.getInstance().createFolder(ERepositoryObjectType.METADATA,Path.EMPTY,EResourceConstant.DB_CONNECTIONS.getName());
    }
    if (!project.getFolder(EResourceConstant.MDM_CONNECTIONS.getPath()).exists()) {
      ProxyRepositoryFactory.getInstance().createFolder(ERepositoryObjectType.METADATA,Path.EMPTY,EResourceConstant.MDM_CONNECTIONS.getName());
    }
    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);
    copyFilesToFolder(plugin,SYSTEM_INDICATOR_PATH,true,systemIndicatorFoler,null);
    WorkspaceVersionHelper.storeVersion();
    ResourceService.refreshStructure();
  }
 catch (  Exception ex) {
    ExceptionHandler.process(ex);
    ProxyRepositoryManager.getInstance().save();
  }
}