THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
This enables customization of various aspects independently and finer grained testing.
Extracting 2PC Resource also allows to run it not as a Sink (might be needed for a batch jobs to commit final pre-committed transactions when Tasks are not running anymore).
Serialization can be viewed as implementation detail of StateHandler. Though API to build it or some default implementation should be provided.
...