Indeed it should be moved to the TransactionManagerServices, and probably remove the Metrics reference from the ResourceBean. It should get it from TransactionManagerServices, and fetching it on demand won't probably add too much overhead.