I Googled this and found code for a JavaScript Rule action, but the code doesn't work for me:

Packages.org.pentaho.core.system.PentahoSystem.getSolutionRepository(rule.getSession()).reloadSolutionRepository(rule.getSession(), 3);

I can't find this in the 4.1 API anywhere, plus, I have no idea how to call Java code from inside JavaScript.

So how do I get hold of the SolutionRepository and refresh it from inside an xaction?