It can't. Recovery isn't standardised except in JTS and WS-T. In the land of pure XA, then you are pretty much on your own and it is implementation specific. XA does not require resources to query coordinators. Some implementations don't: they timeout after some period and make an autonomous choice (usually to roll back). Heuristics could obviously occur then, but that's an implementation choice.