Complex sentence: He composed the work during the first years of the Thirty Years' War, when he was in the service of the Protestant Elector of Saxony Johann Georg I, who tried to stay neutral.
Split into simpler sentences: He composed the work during the first years of the Thirty Years' War. He was in the service of the Protestant Elector of Saxony Johann Georg I, who tried to stay neutral.