private ConcurrentMap<GridCacheVersion,IgniteInternalTx> transactionMap(IgniteInternalTx tx){
  return (tx.near() && !tx.local()) ? nearIdMap : idMap;
}

private ConcurrentMap < GridCacheVersion , IgniteInternalTx > transactionMap ( IgniteInternalTx tx ) { return ( tx . near ( ) && ! tx . local ( ) ) ? nearIdMap : idMap ; }
gets transaction id map depending on transaction type .
