Added transaction deadlock recovery to JsonRestServlet.