Updating contextMap and Reloading .vm file

Hi, I’m using Web Panel .vm files to render details in Issue Details page.
Right now we want to add a Button UI which would update the Context and reload this panel…
I’m not aware how can I bind this button to AbstractJiraContextProvider extended class and use it.

Expecting: Button Onclick calls a method in method in class AQIssueConnect extends AbstractJiraContextProvider which updates the context and reloads the panel with this new context