XLinks not resolving because null Service Context in detachXLinks