public void printJson(final SessionState.LogHelper console) {
    try {
      waitForReturnSessionEvent();
      ObjectMapper objectMapper = new ObjectMapper();
      objectMapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
      // serialize json based on field annotations only
      objectMapper.setVisibility(objectMapper.getSerializationConfig().getDefaultVisibilityChecker()
        .withSetterVisibility(JsonAutoDetect.Visibility.NONE));
      String wmContextJson = objectMapper.writerWithDefaultPrettyPrinter().writeValueAsString(this);
      console.printInfo("");
      console.printInfo(WM_EVENTS_TITLE);
      console.printInfo(SEPARATOR);
      console.printInfo(wmContextJson);
      console.printInfo(SEPARATOR);
      console.printInfo("");
    } catch (Exception e) {
      LOG.warn("Unable to serialize WMContext to json.", e);
    }
  }
Some context information that are required for rule evaluation.
ql/src/java/org/apache/hadoop/hive/ql/wm/WmContext.java