code: @NotNull
      public final String marshal(@NotNull final SerializerRegistry registry,
              @NotNull final List<CommonEvent> commonEvents) {
  
          Contract.requireArgNotNull("registry", registry);
          Contract.requireArgNotNull("commonEvents", commonEvents);
  
          final Serializer serializer = registry.getSerializer(EscEvents.SER_TYPE);
  
          final List<EscEvent> eventList = new ArrayList<>();
          for (final CommonEvent commonEvent : commonEvents) {
              eventList.add(createEscEvent(registry, serializer.getMimeType(), commonEvent));
          }
          final EscEvents events = new EscEvents(eventList);
          final byte[] data = serializer.marshal(events, EscEvents.SER_TYPE);
          return new String(data, serializer.getMimeType().getEncoding());
      }
docs: Creates a list of "application/vnd.eventstore.events(+json/+xml)" entries surrounded by "[]" (JSON) or
  "&lt;Events&gt;&lt;/Events&gt;" (XML).
  
  @param registry
  Registry with known serializers.
  @param commonEvents
  Events to marshal.
  
  @return Single event body.