It looks like you're setting up a variable called name
v.put("name", field.getValue());
But then printing a variable called v
System.out.println("Hello " + v);
If you change this to (making it a bit more Groovy in the process)
println "Hello $name"
It should work!