title: Get variable value for its name in Groovy
body: <p>I have the following variables defined:</p>
  
  <pre><code>def VAL1 = 'foo'
  def VAL2 = 'bar'
  
  def s2 = 'hello ${VAL1}, please have a ${VAL2}'
  </code></pre>
  
  <p>What is the easiest way to make this substitution work?
  How could I build a GString from <code>s2</code> and have it evaluated?
  (VALs and s2 are loaded from database, this snippet is only for demonstrating my problem.)</p>