docs: public JSONArray sendToArray(String method, Object params) throws CommandExecutionException {
          Response resp = send(method, params);
          if (resp == null) throw new CommandExecutionException(CommandExecutionException.Error.INVALID_RESPONSE);
          if (resp.getParams() == null) throw new CommandExecutionException(CommandExecutionException.Error.INVALID_RESPONSE);
          if (resp.getParams().getClass() != JSONArray.class) throw new CommandExecutionException(CommandExecutionException.Error.INVALID_RESPONSE);
          return (JSONArray)resp.getParams();
      }