title: pulling the list of values from the list of keys
body: <p>I have a record as </p>
  
  <pre><code>firstMap = [ name1:[ value1:10, value2:'name1', value3:150, value4:20 ],
               name2:[ value1:10, value2:'name2', value3:150, value4:20 ] ]
  </code></pre>
  
  <p>I have a list where the values are name1, name2, etc.</p>
  
  <p>I want to pull the list depending on the name1 as </p>
  
  <pre><code>[ name1:[ value1:10, value2:'name1', value3:150, value4:20 ]
  </code></pre>
  
  <p><code>firstMap.subMap(["name1"])</code>, did work for me, but I have a list and by looping the list I need to pull the values</p>
  
  <pre><code>namesList.each{record -&gt;
      newMap = firstmap.subMap(record)
  }
  </code></pre>
  
  <p>I have tried subMap([offer]), subMap(["offer"]), subMap(["offer?.stringValue()"]), subMap(['offer']), etc. But none of them work for me.</p>