public static ScriptEngine getEngine(Collection<InputStream> scripts) {
		ScriptEngine engine = getEngine();

		for (InputStream script : scripts) {
			evaluate(engine, script);
		}

		return engine;
	}
public static ScriptEngine getEngine(Collection<InputStream> scripts) {
		ScriptEngine engine = getEngine();

		for (InputStream script : scripts) {
			evaluate(engine, script);
		}

		return engine;
	}
public static ScriptEngine getEngine ( Collection < InputStream > scripts ) { ScriptEngine engine = getEngine ( ) ; for ( InputStream script : scripts ) { evaluate ( engine , script ) ; } return engine ; }
Get new nashorn engine.

@param scripts List of scripts to evaluate.
@return Nashorn Engine.
Get new nashorn engine .