Perhaps you should use the StateTransferManager or ClusteringDependentLogic here, see `ClusteringDependentLogic.InvalidationLogic.getPrimaryOwner()`.