public static KeyValue copyToNewKeyValue(final ExtendedCell cell) {
    byte[] bytes = copyToNewByteArray(cell);
    KeyValue kvCell = new KeyValue(bytes, 0, bytes.length);
    kvCell.setSequenceId(cell.getSequenceId());
    return kvCell;
  }
************* copy the cell to create a new keyvalue ********************
hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValueUtil.java