Using getCriteria correcly.

jira : QUES-20