 Complete the following phrase:  From 1801 to 1817, King Maximilian I Joseph of Bavaria by himself held full command of the Bavarian Army. In 1817 General von Triva was made the real head of the Ministry by him, but the administration of justice and economics of the military was part of the Oberadministrativkollegium and the Generallazarettinspektion. In 1822 Maximilian I assigned General von Wrede as commander-in-chief of the army, and the Staatsministerium der Armee also became responsible for the administration of justice and economics. After 1829 the tasks and responsibilities of the supreme command of the army Oberkommando, existing from 1822 to 1829 were transferred to the Minister of War, so that he was additionally commander-in-chief of the army. After acquiring command of the army, the Bavarian war minister had far more extensive responsibilities compared to ministers of other countries, such as the Prussian Minister of War. After the breakdown of the Bavarian kingdom in 