title: How to loop the map and use the value to create a path in groovy
body: <p>I have a map like this </p>
  
  <pre><code>   def map = [
            var1 : "var1",
            var2 : "var2",
            var3 : "var3"
      ]
  </code></pre>
  
  <p>and have a method to use the value to create some paths</p>
  
  <pre><code> class test{
      Method start(){
        Method.newInstance()
                  .withName("test1/A1/(should be the value in the map)")
          } 
      }
  
  test.newInstance().start()
  </code></pre>
  
  <p>So how can I loop the map and put these three values as parameters to .withName() to create three different paths?</p>