Converted spring security xml config to java config