Use real closure for grails 1.3.7 compilation error