REFACTOR with upgrading grails 1.3.7 to grails 2.1.1