private void findRepeatedDataItems(){
  for (  JsTreeDataItem dataItem : this) {
    Integer timesRepeated=0;
    if (hasTreeDataItem(dataItem)) {
      if (sameIdDataItemsMap.containsKey(dataItem.getOriginalId()))       timesRepeated=sameIdDataItemsMap.get(dataItem.getOriginalId());
      timesRepeated++;
      sameIdDataItemsMap.put(dataItem.getOriginalId(),timesRepeated);
    }
  }
}

private void findRepeatedDataItems ( ) { for ( JsTreeDataItem dataItem : this ) { Integer timesRepeated = 0 ; if ( hasTreeDataItem ( dataItem ) ) { if ( sameIdDataItemsMap . containsKey ( dataItem . getOriginalId ( ) ) ) timesRepeated = sameIdDataItemsMap . get ( dataItem . getOriginalId ( ) ) ; timesRepeated ++ ; sameIdDataItemsMap . put ( dataItem . getOriginalId ( ) , timesRepeated ) ; } } }
finds all repeated elements , or basically the ones with the same id so they can be treated later on
