rearrange code which retrieves GrailsApplication for data binding