Optimal Reinsurance In The Presence Of Counterparty Default Risk