public JsonObject getResolution(String source) throws KiteTestException {
    executeJsScript(webDriver, stashResolutionScript(source.equalsIgnoreCase("remote")));
    waitAround(ONE_SECOND_INTERVAL);
    String resolution = (String) executeJsScript(webDriver, getStashedResolutionScript());
    InputStream stream = new ByteArrayInputStream(resolution.getBytes(StandardCharsets.UTF_8));
    JsonReader reader = Json.createReader(stream);
    return reader.readObject();
  }
Returns the test's GetResolutionScript to stash the result and stats of the test in a global
variable to retrieve later.

@param source local or remote track
@return JsonObject json object
KITE-AppRTC-Test/src/main/java/org/webrtc/kite/apprtc/pages/AppRTCMeetingPage.java