GPSPRINGSECURITYCORE-157 manually merged https://github.com/grails-plugins/grails-spring-security-core/pull/12