Grails rewrite