title: Java 8 ScriptEngine across ClassLoaders
body: <p>I need to execute some javascript code 'inside' different classloaders. If it is java, each task will run in separate class loader. Now I need this to be javascript.</p>
  
  <p>Do I need to create new instance of <code>ScriptEngine</code> in each classloader, or is it ok to share one across class loaders?</p>