Code from the book "Grails in Action - 2nd Edition"