Would the thread context classloader be the right thing to use?
It depends how Infinispan's M/R code handles setting of TCCL.
Specially in remote invocations.
But I would expect it to work.
Not the best, but good enough. :-)
Or, perhaps it can use ScriptEngine?
What's ScriptEngine?
-Ales