Spring MVC was configured to return JSON for domain enities