public void removeWritten(byte[] value){
  writeSetLock.lock();
  Set<TimestampValuePair> temp=(HashSet<TimestampValuePair>)writeSet.clone();
  for (  TimestampValuePair rv : temp) {
    if (Arrays.equals(rv.getValue(),value))     writeSet.remove(rv);
  }
  writeSetLock.unlock();
}

public void removeWritten ( byte [ ] value ) { writeSetLock . lock ( ) ; Set < TimestampValuePair > temp = ( HashSet < TimestampValuePair > ) writeSet . clone ( ) ; for ( TimestampValuePair rv : temp ) { if ( Arrays . equals ( rv . getValue ( ) , value ) ) writeSet . remove ( rv ) ; } writeSetLock . unlock ( ) ; }
remove an already writte value from writeset
