private Stack<CompositeTransaction> removeThreadMappings(Thread thread){
  Stack<CompositeTransaction> ret=null;
synchronized (threadtotxmap_) {
    ret=threadtotxmap_.remove(thread);
    CompositeTransaction tx=ret.peek();
    txtothreadmap_.remove(tx);
  }
  return ret;
}

private Stack < CompositeTransaction > removeThreadMappings ( Thread thread ) { Stack < CompositeTransaction > ret = null ; synchronized ( threadtotxmap_ ) { ret = threadtotxmap_ . remove ( thread ) ; CompositeTransaction tx = ret . peek ( ) ; txtothreadmap_ . remove ( tx ) ; } return ret ; }
remove mappings for given thread .
