Hi Frank,
Thank you so much for the response.  I have just now checked my question. Since there are two  getAction i.e getAction1and getAction2  in my code and both being similar, I have posted one.
Now I have updated the question.
Thanks and regards
Prudhvi