 Complete the following phrase:  Born in Vienna, he was the second son of Charles V, Duke of Lorraine. He was bishop of Olomouc 16951711 and Prince-Bishop of Osnabrück 16981715, for which he was the successful candidate of the House of Palatinate, opposed by Brandenburg and, following some reverses and to the accompaniment of an enormous payment to the chapter of Trier, Charles Joseph was made archbishop and prince-elector of Trier 17111715, a political position of notable importance in the Holy Roman Empire. Already in 1711, he was able to make use of his electoral rights in the election of Charles VI, Holy Roman Emperor. He participated in the negotiations surrounding the end of the 