Changes for grails 2.2.1 compatibility

Now compiles and runs in grails 2.2.1