Replace deprecated way of reffering to grails app
Reformat code