As the title says. During the Napoleonic Wars, Bavaria occupied Tyrol and Salzburg, but during the Congress of Vienna (IIRC), they ceded these territories to Austria. Is there any way Bavaria could retain them after 1815? If so, how? What would its consequences be?