Amit thanks but your suggestion doesnt work.
I think I am doing a mistake when I save graph in session variable.
session.setAttribute("tempHamiGraph", tempHamiGraph);
I need new graph to be created for each request, but as I am saving it in session I get the same old one. I tried to use
request.setAttribute("tempHamiGraph", tempHamiGraph);
but it didnt work.