class JSRhinoScriptEngine implements IScriptEngine {

    @Override
    public Object execScript(String scriptName, Object... args) {
        Script script = this.scripts.get(scriptName);

        if (script == null) {
            throw new IllegalStateException("js script '" + scriptName + "' doesn't exists in cache, you have to compile it first!");
        }

        if (args != null && args.length > 0) {
            throw new UnsupportedOperationException("javascript doesn't supports args for scripts.");
        }

        Log.d(SCRIPTS_TAG, "execute js script '" + scriptName + "'");

        script.exec(this.cx, this.scope);

        return null;
    }

    public  JSRhinoScriptEngine();

}