private CoordinatorImp createCC(RecoveryCoordinator adaptor,String root,boolean checkOrphans,boolean heuristic_commit,long timeout){
  CoordinatorImp cc=null;
  if (maxTimeout_ > 0 && timeout > maxTimeout_) {
    timeout=maxTimeout_;
    LOGGER.logWarning("Attempt to create a transaction with a timeout that exceeds maximum - truncating to: " + maxTimeout_);
  }
synchronized (shutdownSynchronizer_) {
    if (shutdownInProgress_)     throw new IllegalStateException("Server is shutting down...");
    if (otsOverride_) {
      checkOrphans=false;
    }
    cc=new CoordinatorImp(root,adaptor,heuristic_commit,timeout,checkOrphans,single_threaded_2pc_);
    recoverymanager_.register(cc);
synchronized (getLatch(root.intern())) {
      rootToCoordinatorMap_.put(root.intern(),cc);
    }
    startlistening(cc);
  }
  return cc;
}

private CoordinatorImp createCC ( RecoveryCoordinator adaptor , String root , boolean checkOrphans , boolean heuristic_commit , long timeout ) { CoordinatorImp cc = null ; if ( maxTimeout_ > 0 && timeout > maxTimeout_ ) { timeout = maxTimeout_ ; LOGGER . logWarning ( "Attempt to create a transaction with a timeout that exceeds maximum - truncating to: " + maxTimeout_ ) ; } synchronized ( shutdownSynchronizer_ ) { if ( shutdownInProgress_ ) throw new IllegalStateException ( "Server is shutting down..." ) ; if ( otsOverride_ ) { checkOrphans = false ; } cc = new CoordinatorImp ( root , adaptor , heuristic_commit , timeout , checkOrphans , single_threaded_2pc_ ) ; recoverymanager_ . register ( cc ) ; synchronized ( getLatch ( root . intern ( ) ) ) { rootToCoordinatorMap_ . put ( root . intern ( ) , cc ) ; } startlistening ( cc ) ; } return cc ; }
creation method for composite coordinators .
