Implemented GRAILS-10751

http://jira.grails.org/browse/GRAILS-10751