Hello Deepshikha Balliyan,
It appears you are missing some logic there.
Could you share with us the following information about your environment?
1. What version of JMeter you are using?
2. What version of Java are you using?
3. Which version of the plugin are you using? (I'm assuming you are using v2.0 by the trace)
4. Did you install the Plugin from the JMeter Plugins, or did it manually from the GitHub repository?
Also, any other relevant information that you consider it's important to mention from your environment, would allow us to help you with that issue.