title: Parse key-value map string in groovy
body: <p>I have some output from a call to a backend server (DSDB) using the unix shell .execute command in groovy. What it gives me is a list of key value pairs separated by a line and each pair separated by a colon. I need to have each Key Value pair placed into a map. This is the output I receive:</p>
  
  <pre><code>Group Name:  groupName
         GID:  12345
        Type:  1
    Comments:
  Visibility:  visibile1
  Owner Name:  name1
  Owner Number:  123
  Manager Name:  manager1
  Manager Number:  234
  Environment:  dev
       State:  0
  </code></pre>
  
  <p>I need to get the value of Owner Name within a function and pass it back as a variable and I also need the value of environment in another function. These will be two separate functions.</p>