Program: 117803
Project: 117803
Buggy source:
public static ITalendProcessJavaProject getTalendCodeJavaProject(ERepositoryObjectType type,Project project){
  String codeProjectId=AggregatorPomsHelper.getCodeProjectId(type,project.getTechnicalLabel());
  ITalendProcessJavaProject talendCodeJavaProject=talendCodeJavaProjects.get(codeProjectId);
  if (talendCodeJavaProject == null || talendCodeJavaProject.getProject() == null || !talendCodeJavaProject.getProject().exists()) {
    try {
      IProgressMonitor monitor=new NullProgressMonitor();
      IWorkspaceRoot root=ResourcesPlugin.getWorkspace().getRoot();
      AggregatorPomsHelper helper=new AggregatorPomsHelper(project.getTechnicalLabel());
      IFolder codeProjectFolder=helper.getProjectPomsFolder().getFolder(type.getFolder());
      IProject codeProject=root.getProject((project.getTechnicalLabel() + "String_Node_Str" + type.name()).toUpperCase());
      if (!codeProject.exists() || TalendCodeProjectUtil.needRecreate(monitor,codeProject)) {
        createMavenJavaProject(monitor,codeProject,null,codeProjectFolder,true);
      }
      IJavaProject javaProject=JavaCore.create(codeProject);
      if (!javaProject.isOpen()) {
        javaProject.open(monitor);
      }
      helper.updateCodeProjectPom(monitor,type,codeProject.getFile(TalendMavenConstants.POM_FILE_NAME));
      talendCodeJavaProject=new TalendProcessJavaProject(javaProject);
      talendCodeJavaProject.cleanMavenFiles(monitor);
      BuildCacheManager.getInstance().clearCodesCache(type);
      talendCodeJavaProjects.put(codeProjectId,talendCodeJavaProject);
    }
 catch (    Exception e) {
      ExceptionHandler.process(e);
    }
  }
  MavenPomSynchronizer.addChangeLibrariesListener();
  return talendCodeJavaProject;
}

Fixed version (ground truth):
public static ITalendProcessJavaProject getTalendCodeJavaProject(ERepositoryObjectType type,String projectTechName){
  String codeProjectId=AggregatorPomsHelper.getCodeProjectId(type,projectTechName);
  ITalendProcessJavaProject talendCodeJavaProject=talendCodeJavaProjects.get(codeProjectId);
  if (talendCodeJavaProject == null || talendCodeJavaProject.getProject() == null || !talendCodeJavaProject.getProject().exists()) {
    try {
      IProgressMonitor monitor=new NullProgressMonitor();
      IWorkspaceRoot root=ResourcesPlugin.getWorkspace().getRoot();
      AggregatorPomsHelper helper=new AggregatorPomsHelper(projectTechName);
      IFolder codeProjectFolder=helper.getProjectPomsFolder().getFolder(type.getFolder());
      IProject codeProject=root.getProject((projectTechName + "String_Node_Str" + type.name()).toUpperCase());
      if (!codeProject.exists() || TalendCodeProjectUtil.needRecreate(monitor,codeProject)) {
        createMavenJavaProject(monitor,codeProject,null,codeProjectFolder,true);
      }
      IJavaProject javaProject=JavaCore.create(codeProject);
      if (!javaProject.isOpen()) {
        javaProject.open(monitor);
      }
      helper.updateCodeProjectPom(monitor,type,codeProject.getFile(TalendMavenConstants.POM_FILE_NAME));
      talendCodeJavaProject=new TalendProcessJavaProject(javaProject);
      talendCodeJavaProject.cleanMavenFiles(monitor);
      BuildCacheManager.getInstance().clearCodesCache(type);
      talendCodeJavaProjects.put(codeProjectId,talendCodeJavaProject);
    }
 catch (    Exception e) {
      ExceptionHandler.process(e);
    }
  }
  MavenPomSynchronizer.addChangeLibrariesListener();
  return talendCodeJavaProject;
}