Here you can find the source of getEngine()
public static ScriptEngine getEngine()
//package com.java2s; //License from project: Apache License import javax.script.ScriptEngine; import javax.script.ScriptEngineManager; public class Main { private static ScriptEngine engine = new ScriptEngineManager().getEngineByMimeType("text/javascript"); public static ScriptEngine getEngine() { return engine; }/* w w w . j a v a2 s .c o m*/ }