code: protected final SerializedData serialize(final SerializedDataType type, final Object data) {
          return EscSpiUtils.serialize(serRegistry, type, data);
      }
docs: Tries to find a serializer for the given type of object and converts it
  into a storable data block.
  
  @param type
  Type of event.
  @param data
  Event of the given type.
  
  @return Event ready to persist.