Program: 117837
Project: 117837
Buggy source:
public static void initJavaProjects(IProgressMonitor monitor,Project project){
  RepositoryWorkUnit<Object> workUnit=new RepositoryWorkUnit<Object>("String_Node_Str"){
    @Override protected void run(){
      try {
        AggregatorPomsHelper helper=new AggregatorPomsHelper(project.getTechnicalLabel());
        IFolder poms=createFolderIfNotExist(helper.getProjectPomsFolder(),monitor);
        if (PluginChecker.isTIS()) {
          IFolder aggregators=createFolderIfNotExist(poms.getFolder(DIR_AGGREGATORS),monitor);
          IFile ciPomFile=aggregators.getFile(TalendJavaProjectConstants.FILE_POM_CI_BUILDER);
          if (!ciPomFile.exists()) {
            helper.createCIPom(ciPomFile,monitor);
          }
        }
        IFolder code=createFolderIfNotExist(poms.getFolder(DIR_CODES),monitor);
        createFolderIfNotExist(code.getFolder(DIR_ROUTINES),monitor);
        if (ProcessUtils.isRequiredPigUDFs(null)) {
          createFolderIfNotExist(code.getFolder(DIR_PIGUDFS),monitor);
        }
        if (ProcessUtils.isRequiredBeans(null)) {
          createFolderIfNotExist(code.getFolder(DIR_BEANS),monitor);
        }
        IFolder jobs=createFolderIfNotExist(poms.getFolder(DIR_JOBS),monitor);
        createFolderIfNotExist(jobs.getFolder(DIR_PROCESS),monitor);
        if (PluginChecker.isMapReducePluginLoader()) {
          createFolderIfNotExist(jobs.getFolder(DIR_PROCESS_MR),monitor);
        }
        if (PluginChecker.isStormPluginLoader()) {
          createFolderIfNotExist(jobs.getFolder(DIR_PROCESS_STORM),monitor);
        }
        if (PluginChecker.isRouteLoaded()) {
          createFolderIfNotExist(jobs.getFolder(DIR_PROCESS_ROUTES),monitor);
        }
        if (PluginChecker.isServiceLoaded()) {
          createFolderIfNotExist(jobs.getFolder(DIR_PROCESS_SERVICES),monitor);
        }
        helper.createRootPom(poms,monitor);
      }
 catch (      Exception e) {
        ExceptionHandler.process(e);
      }
    }
  }
;
  workUnit.setAvoidUnloadResources(true);
  ProxyRepositoryFactory.getInstance().executeRepositoryWorkUnit(workUnit);
}

Fixed version (ground truth):
public static void initJavaProjects(IProgressMonitor monitor,Project project){
  RepositoryWorkUnit<Object> workUnit=new RepositoryWorkUnit<Object>("String_Node_Str"){
    @Override protected void run(){
      try {
        AggregatorPomsHelper helper=new AggregatorPomsHelper(project.getTechnicalLabel());
        IFolder poms=createFolderIfNotExist(helper.getProjectPomsFolder(),monitor);
        IFolder code=createFolderIfNotExist(poms.getFolder(DIR_CODES),monitor);
        createFolderIfNotExist(code.getFolder(DIR_ROUTINES),monitor);
        if (ProcessUtils.isRequiredPigUDFs(null)) {
          createFolderIfNotExist(code.getFolder(DIR_PIGUDFS),monitor);
        }
        if (ProcessUtils.isRequiredBeans(null)) {
          createFolderIfNotExist(code.getFolder(DIR_BEANS),monitor);
        }
        IFolder jobs=createFolderIfNotExist(poms.getFolder(DIR_JOBS),monitor);
        createFolderIfNotExist(jobs.getFolder(DIR_PROCESS),monitor);
        if (PluginChecker.isMapReducePluginLoader()) {
          createFolderIfNotExist(jobs.getFolder(DIR_PROCESS_MR),monitor);
        }
        if (PluginChecker.isStormPluginLoader()) {
          createFolderIfNotExist(jobs.getFolder(DIR_PROCESS_STORM),monitor);
        }
        if (PluginChecker.isRouteLoaded()) {
          createFolderIfNotExist(jobs.getFolder(DIR_PROCESS_ROUTES),monitor);
        }
        if (PluginChecker.isServiceLoaded()) {
          createFolderIfNotExist(jobs.getFolder(DIR_PROCESS_SERVICES),monitor);
        }
        helper.createRootPom(poms,monitor);
      }
 catch (      Exception e) {
        ExceptionHandler.process(e);
      }
    }
  }
;
  workUnit.setAvoidUnloadResources(true);
  ProxyRepositoryFactory.getInstance().executeRepositoryWorkUnit(workUnit);
}