They were first recognized after Austria-Hungary 's annexation of Bosnia and Herzegovina in 1878 . This dates back to the times following Austria-Hungary 's annexation of Bosnia and Herzegovina in 1878 .