docs: List<DynatraceBatchedPayload> createPostMessages(String type, List<DynatraceTimeSeries> timeSeries) {
          final String header = "{\"type\":\"" + type + '\"' + ",\"series\":[";
          final String footer = "]}";
          final int headerFooterBytes = header.getBytes(UTF_8).length + footer.getBytes(UTF_8).length;
          final int maxMessageSize = MAX_MESSAGE_SIZE - headerFooterBytes;
          List<DynatraceBatchedPayload> payloadBodies = createPostMessageBodies(timeSeries, maxMessageSize);
          return payloadBodies.stream().map(body -> {
              String message = header + body.payload + footer;
              return new DynatraceBatchedPayload(message, body.metricCount);
          }).collect(Collectors.toList());
      }