Switch to Jackson for JSON and introduce servlets that use spring beans.