private void logHandlerCalled(JSONObject payload) {
    String message = "Selendroid standalone handler: " + this.getClass().getSimpleName();
    if (payload != null) {
      try {
        message += ", payload:\n" + payload.toString(2);
      } catch (JSONException e) {
        log.log(Level.WARNING, "Cannot debug-print request payload", e);
      }
    }
    log.log(Level.FINE, message);
  }
Implement this in subclasses to handle the request. Don't override {@link #handle(HttpRequest)} directly.
selendroid-standalone/src/main/java/io/selendroid/standalone/server/BaseSelendroidStandaloneHandler.java