I refactored the grails-resources/src/templates/scaffolding/Controller.groovy to enhance per GRAILS-7187

Converted with${className} to private method. Converted example code to methods from closures.