Replace xml based default security configuration with groovy config