public void execute() {

    try {
      global.eval(" monitor( mySubscriptions ) ");
      String alertString = (String) global.getMember("alert");
      if (alertString.trim().equals("true")) {
        global.eval("alert()");
      }
    } catch (JSException je) {
      System.out.println(
          " Exception when trying to run the scriptExecute method from the script file");
      System.out.println(" Please check the scriptExecute method for ECMAScript syntax errors");
      je.printStackTrace();
    }
  }