Spring rest server integrating hibernate4, spring4 and allowing content negotiation.