We address the problem of minimizing the risk of an exposure to a small number of defaultable counterparties based on spectral risk measures, in particular expected shortfall. A typical application is ...