Migrate spring security xml config to JavaConfig