code: public static ScriptEngine getEngine(Collection<InputStream> scripts) {
  		ScriptEngine engine = getEngine();
  
  		for (InputStream script : scripts) {
  			evaluate(engine, script);
  		}
  
  		return engine;
  	}
docs: Get new nashorn engine.
  
  @param scripts List of scripts to evaluate.
  @return Nashorn Engine.