class GenericJsonEvent implements DeserializedEvent {

  @Override
  public void setField(String fieldName, Object value) throws FieldNotFoundException {
    if (this.payload == null) {
      throw new FieldNotFoundException("payload is null");
    }

    if (!fieldName.startsWith("$.")) {
      fieldName = "$." + fieldName;
    }

    JsonPathProvider.setField(this.payload, value, fieldName);
  }

  public  GenericJsonEvent(JsonObject payload);

}