class GenericJsonEvent implements DeserializedEvent {

  @Override
  public Object removeField(String fieldName) throws FieldNotFoundException {
    if (this.payload == null) {
      throw new FieldNotFoundException(fieldName + " is not in payload because payload is null");
    }

    Object o = getField(fieldName);
    JsonPathProvider.delete(this.payload, fieldName);
    return o;
  }

  public  GenericJsonEvent(JsonObject payload);

}