code: function (success, fail, args, env) {
  		var result = new PluginResult(args, env);
  		args = JSON.parse(decodeURIComponent(args["input"]));
  		result.ok(emailSender.getInstance().sendEmail(result.callbackId, args), false);
  	}
docs: These methods call into JNEXT.Template which handles the communication through the JNEXT plugin to template_js.cpp