title: Handling dataSource based on environment in SoapUI
body: <p>I have a service request to be run on different environment (QA, STAGE) and the DataSource of each environment is different. </p>
  
  <p>I have configured the environment endpoint in the <code>environment option</code> and so I have to selected the environment in the <code>drop down</code> to populate the endpoint. </p>
  
  <p>Accordingly, I need to select the appropriate DataSource as well. How can this be achieved?</p>
  
  <p>At the moment, DataSource is a grid with properties associated to the request. </p>
  
  <p>I am using <strong>SOAPUI NG Pro</strong>. I'm new to the tool and naive to groovy scripting.</p>
  
  <p>Any help would be appreciated.
  <strong>FYI</strong>: I tried accessing the environment via <code>activeEnvironment</code>. I've added a custom property but I receive NPE.</p>