Porting to grails 2.2.1