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