code: @SuppressWarnings("deprecation")
      protected JsonPrintControlState preparePrintState(JsonResourceProvider provider) {
          JsonPrintControlState printState = new JsonPrintControlState();
          printState.asNullsSuppressed(provider != null ? provider.isNullsSuppressed() : false);
          printState.asPrettyPrintSuppressed(provider != null ? provider.isPrettyPrintSuppressed() : false);
          return printState;
      }
docs: ------------