Replaced XML based through Java based security config