@SuppressWarnings("unchecked") public CompositeTransactionAdaptor(Stack<CompositeTransaction> lineage,String tid,boolean serial,RecoveryCoordinator adaptor){
  super(tid,(Stack<CompositeTransaction>)lineage.clone(),serial);
  adaptorForReplayRequests_=adaptor;
  Stack<CompositeTransaction> tmp=(Stack<CompositeTransaction>)lineage.clone();
  CompositeTransaction parent=null;
  while (!tmp.empty()) {
    parent=tmp.pop();
  }
  root_=parent.getTid();
}

@ SuppressWarnings ( "unchecked" ) public CompositeTransactionAdaptor ( Stack < CompositeTransaction > lineage , String tid , boolean serial , RecoveryCoordinator adaptor ) { super ( tid , ( Stack < CompositeTransaction > ) lineage . clone ( ) , serial ) ; adaptorForReplayRequests_ = adaptor ; Stack < CompositeTransaction > tmp = ( Stack < CompositeTransaction > ) lineage . clone ( ) ; CompositeTransaction parent = null ; while ( ! tmp . empty ( ) ) { parent = tmp . pop ( ) ; } root_ = parent . getTid ( ) ; }
create a new instance .
