//region > serialize (API)
@Programmatic
@Override
public Object serialize(EventMetadata metadata, EventPayload payload) {
final RendererContext rendererContext = new EventSerializerRendererContext(baseUrl, Where.OBJECT_FORMS);
final JsonRepresentation payloadRepr = asPayloadRepr(rendererContext, payload);
final JsonRepresentation eventRepr = asEventRepr(metadata, payloadRepr);
return jsonFor(eventRepr);