Correcting Java config for MVC