# File lib/new_relic/agent/transaction_state.rb, line 21
      def self.tl_state_for(thread)
        state = thread[:newrelic_transaction_state]

        if state.nil?
          state = TransactionState.new
          thread[:newrelic_transaction_state] = state
        end

        state
      end