How the Habsburg Empire contain ethnic rivalries and nationalism

How did the Habsburg Empire contain ethnic rivalries and nationalism after 1867? Was it successful?