Adding support for grails environment.