public SelendroidResponse createSession(Properties params) throws JSONException {

    JSONObject sessionCap = new JSONObject();
    sessionCap.put(TAKES_SCREENSHOT, true);
    sessionCap.put(BROWSER_NAME, "selendroid");
    sessionCap.put(ROTATABLE, false);
    sessionCap.put(PLATFORM, "android");
    sessionCap.put(VERSION, "16");
    return defaultResponseWithMessage(sessionCap);
  }
Implementations are able to listen to the {@link SelendroidDeviceServerStub} lifecycle.

@author ddary
selendroid-standalone/src/test/java/io/selendroid/standalone/server/support/TestSessionListener.java