tested for grails 2.2.x