title: How to get the name given to transaction controller using beanshell preprocesssor in jmeter
body: <p>I want to get the name given to transaction controller using BeanShell preprocessor in JMeter.
   Which I want to use to connect and display in dynaTrace later using header manager.</p>
  
  <p>I tried something like this using BeanShell listener</p>
  
  <pre><code>String test = sampleResult.getSampleLabel();
  log.info(test);
  </code></pre>
  
  <p>but I want to use the preprocessor.</p>
  
  <pre><code>log.info(sampler.getName());
  </code></pre>
  
  <p>This is used to get the name of sampler, in the similar way I want to get the name of transaction controller.</p>
  
  <p>Specifically, I want to use BeanShell preprocessor .</p>
  
  <p>Can somebody help me in this?</p>