code: private static byte[] toBytes(JsonNode content) {
          try {
              return Jackson.writeValueAsBytes(content);
          } catch (JsonProcessingException e) {
              // Should never reach here.
              throw new Error(e);
          }
      }
docs: Encodes the specified {@link JsonNode} into a byte array.