Here you can find the source of getScript(String name)
public static ScriptEngine getScript(String name)
//package com.java2s; //License from project: Apache License import javax.script.ScriptEngine; import javax.script.ScriptEngineManager; public class Main { public static ScriptEngine getScript(String name) { return new ScriptEngineManager().getEngineByName(name); }//from www. j a v a2s. c om }