private ScriptEngine newScriptEngine(String name) throws ScriptException {
  ScriptEngineManager manager=new ScriptEngineManager();
  ScriptEngine engine=manager.getEngineByName(name);
  if (engine == null) {
    throw new ScriptException("no scripting engine for " + name);
  }
  return engine;
}

private ScriptEngine newScriptEngine ( String name ) throws ScriptException { ScriptEngineManager manager = new ScriptEngineManager ( ) ; ScriptEngine engine = manager . getEngineByName ( name ) ; if ( engine == null ) { throw new ScriptException ( "no scripting engine for " + name ) ; } return engine ; }
returns a new scripting engine for the specified scripting language .
