This operation registers the parameter Resource object as a participant in the
transaction associated with the target object. The RecoveryCoordinator returned
by this operation can be used by this Resource during recovery.

Note

The Resources will be called in FIFO-order when preparing or committing.
Hence, be sure to register the Resources in the correct order.