Patch to work with Grails