This avoids composability problems since getResourcesText could be executed within another transaction and the reattach would fail.