private SelendroidResponse respondWithInstrumentationProcessFinished(
    String sessionId,
    String output,
    Exception error,
    AndroidDevice device) throws JSONException {
    InstrumentationProcessOutput instrumentationOutput =
      InstrumentationProcessOutput.parse(output);

    if (error != null) {
      return respondWithFailure(
        sessionId,
        new SelendroidException(
          "Failed to execute instrument command, output:\n" +
          instrumentationOutput.getFullOutput(),
          error));
    }

    return respondWithFailure(
      sessionId,
      InstrumentationProcessOutput
        .getInstrumentationProcessError(
          instrumentationOutput,
          device));
  }
Proxies the request as-is to the device.
selendroid-standalone/src/main/java/io/selendroid/standalone/server/handler/ProxyToDeviceHandler.java