Improve generic interfaces StateChangeListener, XAResourceHolder, XAResourceProducer and XAStatefulHolder. They are now more consistent.
Strengthen definition of XAResourceHolder generic parameter even further.