Custom serialization for events in EventSourcedBehavior

I am trying to implement a custom serializer for my classes that implement my event interface (that extends CompressedJsonable and com.lightbend.lagom.javadsl.persistence.AggregateEvent).

That serializer needs to access some runtime state.

Is there a way to do this in Lagom?

Found a solution that uses the @JsonDeserialize annotation to specify a custom deserializer. Unfortunately, it interferes with with schema evolution.

I will post this issue on Gitter as well, maybe somebody can help.