Converted the web.xml into a Java Config