Program: 126797
Project: 126797
Buggy source:
private URI getItemURI(Item item){
  ProjectManager pManager=ProjectManager.getInstance();
  org.talend.core.model.general.Project project=new org.talend.core.model.general.Project(pManager.getProject(item));
  if (project != null && !project.equals(pManager.getCurrentProject())) {
    String folder=null;
    if (item instanceof JobDocumentationItem) {
      folder=ERepositoryObjectType.getFolderName(ERepositoryObjectType.JOB_DOC);
    }
 else     if (item instanceof JobletDocumentationItem) {
      folder=ERepositoryObjectType.getFolderName(ERepositoryObjectType.JOBLET_DOC);
    }
 else     if (item instanceof DatabaseConnectionItem) {
      folder=ERepositoryObjectType.getFolderName(ERepositoryObjectType.METADATA_CONNECTIONS);
    }
 else     if (item instanceof DelimitedFileConnectionItem) {
      folder=ERepositoryObjectType.getFolderName(ERepositoryObjectType.METADATA_FILE_DELIMITED);
    }
 else     if (item instanceof EbcdicConnectionItem) {
      folder=ERepositoryObjectType.getFolderName(ERepositoryObjectType.METADATA_FILE_EBCDIC);
    }
 else     if (item instanceof PositionalFileConnectionItem) {
      folder=ERepositoryObjectType.getFolderName(ERepositoryObjectType.METADATA_FILE_POSITIONAL);
    }
 else     if (item instanceof ValidationRulesConnectionItem) {
      folder=ERepositoryObjectType.getFolderName(ERepositoryObjectType.METADATA_VALIDATION_RULES);
    }
    if (folder != null) {
      IPath path=new Path(project.getTechnicalLabel());
      path=path.append(folder);
      path=path.append(item.getState().getPath());
      Property property=item.getProperty();
      String version="String_Node_Str";
      if (item.isNeedVersion()) {
        version="String_Node_Str" + property.getVersion();
      }
      String itemStr=property.getLabel() + version + "String_Node_Str"+ FileConstants.PROPERTIES_EXTENSION;
      path=path.append(itemStr);
      return URIHelper.convert(path);
    }
  }
  return item.getProperty().eResource().getURI();
}

Fixed version (ground truth):
private URI getItemURI(Item item){
  ProjectManager pManager=ProjectManager.getInstance();
  org.talend.core.model.general.Project project=new org.talend.core.model.general.Project(pManager.getProject(item));
  if (project != null && !project.equals(pManager.getCurrentProject())) {
    String folder=null;
    if (item instanceof JobDocumentationItem) {
      folder=ERepositoryObjectType.getFolderName(ERepositoryObjectType.JOB_DOC);
    }
 else     if (item instanceof JobletDocumentationItem) {
      folder=ERepositoryObjectType.getFolderName(ERepositoryObjectType.JOBLET_DOC);
    }
 else     if (item instanceof DatabaseConnectionItem) {
      folder=ERepositoryObjectType.getFolderName(ERepositoryObjectType.METADATA_CONNECTIONS);
    }
 else     if (item instanceof DelimitedFileConnectionItem) {
      folder=ERepositoryObjectType.getFolderName(ERepositoryObjectType.METADATA_FILE_DELIMITED);
    }
 else     if (item instanceof EbcdicConnectionItem) {
      folder=ERepositoryObjectType.getFolderName(ERepositoryObjectType.METADATA_FILE_EBCDIC);
    }
 else     if (item instanceof PositionalFileConnectionItem) {
      folder=ERepositoryObjectType.getFolderName(ERepositoryObjectType.METADATA_FILE_POSITIONAL);
    }
 else     if (item instanceof ValidationRulesConnectionItem) {
      folder=ERepositoryObjectType.getFolderName(ERepositoryObjectType.METADATA_VALIDATION_RULES);
    }
    if (folder != null) {
      IPath path=new Path(project.getTechnicalLabel());
      path=path.append(folder);
      path=path.append(item.getState().getPath());
      Property property=item.getProperty();
      String version="String_Node_Str";
      if (item.isNeedVersion()) {
        version="String_Node_Str" + property.getVersion();
      }
      String itemStr=property.getLabel() + version + "String_Node_Str"+ FileConstants.PROPERTIES_EXTENSION;
      path=path.append(itemStr);
      return URIHelper.convert(path);
    }
  }
 else   if (!item.isNeedVersion()) {
    Property property=item.getProperty();
    URI uri=property.eResource().getURI();
    IPath fullPath=URIHelper.convert(uri);
    fullPath=fullPath.removeLastSegments(1);
    fullPath=fullPath.append(property.getLabel()).addFileExtension(FileConstants.PROPERTIES_EXTENSION);
    return URIHelper.convert(fullPath);
  }
  return item.getProperty().eResource().getURI();
}