Program: 128770
Project: 128770
Buggy source:
@Override public List createPastableBeansList(ExtendedTableModel extendedTable,List copiedObjectsList){
  ArrayList addItemList=new ArrayList();
  ArrayList list=new ArrayList();
  int indice=1;
  MetadataEmfTableEditor tableEditor=(MetadataEmfTableEditor)extendedTable;
  for (  Object current : copiedObjectsList) {
    if (current instanceof MetadataColumn) {
      MetadataColumn metadataColumn=(MetadataColumn)current;
      String nextGeneratedColumnName=tableEditor.getNextGeneratedColumnName(metadataColumn.getLabel());
      MetadataColumn newColumnCopy=new ConnectionFactoryImpl().copy(metadataColumn,nextGeneratedColumnName);
      newColumnCopy.setLabel(nextGeneratedColumnName);
      addItemList.add(newColumnCopy);
    }
 else     if (current instanceof IMetadataColumn) {
      IMetadataColumn copy=((IMetadataColumn)current).clone();
      String nextGeneratedColumnName=copy.getLabel();
      String tempNewColumnName="String_Node_Str";
      boolean iMetaColumnUnique=false;
      boolean metaColumnUnique=false;
      while (iMetaColumnUnique == false || metaColumnUnique == false) {
        nextGeneratedColumnName=tableEditor.getNextGeneratedColumnName(nextGeneratedColumnName,null);
        metaColumnUnique=true;
        iMetaColumnUnique=false;
        if (list.size() == 0)         iMetaColumnUnique=true;
 else {
          tempNewColumnName=this.getUniqueString(list,nextGeneratedColumnName);
          if (tempNewColumnName.equals(nextGeneratedColumnName))           iMetaColumnUnique=true;
 else {
            iMetaColumnUnique=false;
            nextGeneratedColumnName=tempNewColumnName;
          }
        }
      }
      MetadataColumn newColumnCopy=new ConnectionFactoryImpl().copy(ConvertionHelper.convertToMetaDataColumn(copy),nextGeneratedColumnName);
      newColumnCopy.setLabel(nextGeneratedColumnName);
      addItemList.add(newColumnCopy);
      list.add(nextGeneratedColumnName);
    }
  }
  return addItemList;
}

Fixed version (ground truth):
@Override public List createPastableBeansList(ExtendedTableModel extendedTable,List copiedObjectsList){
  ArrayList addItemList=new ArrayList();
  ArrayList list=new ArrayList();
  ArrayList<String> labelsExisted=getLabelsExisted(extendedTable);
  int indice=1;
  MetadataEmfTableEditor tableEditor=(MetadataEmfTableEditor)extendedTable;
  for (  Object current : copiedObjectsList) {
    if (current instanceof MetadataColumn) {
      MetadataColumn metadataColumn=(MetadataColumn)current;
      String nextGeneratedColumnName=tableEditor.getNextGeneratedColumnName(metadataColumn.getLabel());
      if (labelsExisted.contains(nextGeneratedColumnName)) {
        nextGeneratedColumnName=validateColumnName(nextGeneratedColumnName,labelsExisted);
      }
      labelsExisted.add(nextGeneratedColumnName);
      MetadataColumn newColumnCopy=new ConnectionFactoryImpl().copy(metadataColumn,nextGeneratedColumnName);
      newColumnCopy.setLabel(nextGeneratedColumnName);
      addItemList.add(newColumnCopy);
    }
 else     if (current instanceof IMetadataColumn) {
      IMetadataColumn copy=((IMetadataColumn)current).clone();
      String nextGeneratedColumnName=copy.getLabel();
      String tempNewColumnName="String_Node_Str";
      boolean iMetaColumnUnique=false;
      boolean metaColumnUnique=false;
      while (iMetaColumnUnique == false || metaColumnUnique == false) {
        nextGeneratedColumnName=tableEditor.getNextGeneratedColumnName(nextGeneratedColumnName,null);
        metaColumnUnique=true;
        iMetaColumnUnique=false;
        if (list.size() == 0) {
          iMetaColumnUnique=true;
        }
 else {
          tempNewColumnName=this.getUniqueString(list,nextGeneratedColumnName);
          if (tempNewColumnName.equals(nextGeneratedColumnName)) {
            iMetaColumnUnique=true;
          }
 else {
            iMetaColumnUnique=false;
            nextGeneratedColumnName=tempNewColumnName;
          }
        }
      }
      MetadataColumn newColumnCopy=new ConnectionFactoryImpl().copy(ConvertionHelper.convertToMetaDataColumn(copy),nextGeneratedColumnName);
      newColumnCopy.setLabel(nextGeneratedColumnName);
      addItemList.add(newColumnCopy);
      list.add(nextGeneratedColumnName);
    }
  }
  return addItemList;
}