code: boolean removeLocalScope(TransactionScope<Txn> scope) {
          TransactionScope<Txn> existing = mLocalScope.get();
          if (existing == scope) {
              detachNotification(scope.getActiveTxn());
              mLocalScope.remove();
              return true;
          }
          return false;
      }
docs: Called by TransactionScope.