Reload Element Templates from Camunda Modeler Plugin

Hi there,

I am currently building a Camunda Modeler Plugin that retrieves element templates provided by an http endpoint and stores them in the resources/element-templates folder of the modeler.
It works fine save for one thing: when I store a new template using the plugin I cannot use it right away, the modeler needs to load the new template first. According to the documentation that happens when the modeler starts. After restarting the templates are indeed picked up.

However I noticed that there is a little hack to get the new templates quicker: open a new editor tab and then switch back to the first tab. This makes me wonder: is there a way to reload the templates programmatically from a modeler plugin? This would greatly enhance the user experience of my plugin. I looked in the modeler source code and I think I can see how the reloading is triggered, but I can’t think of a way to trigger it from plugin code. Has anyone got an idea?

Cheers
Claudio