Serbia is the nation state of the Serbs, who are Serbia's dominant ethnic group. Serbs are also dominant in Republika Srpska, an entity of Bosnia and Herzegovina. In the 19th century, the Serbian national identity was manifested, with awareness of history and tradition, medieval heritage, cultural unity, despite Serbs living under different empires. Three elements, together with the legacy of the Nemanjić dynasty, were crucial in forging identity and preservation during foreign domination: the Serbian Orthodox Church, Kosovo Myth, and the Serbian language. The identification with medieval heritage through venerating Serbian saints, together with Serbian epic poetry, had helped develop a national consciousness separate from other Orthodox peoples in the Balkans. The heroic epic cycles inspired the Serbs to revive their heroic past and freedom. In the stories, the hajduks were heroes: they had played the role of the Serbian elite during Ottoman rule, they had defended the Serbs against Ottoman oppression, and prepared for the national liberation and contributed to it in the Serbian Revolution. The symbolical Kosovo Myth became the "mythomoteur", signifying martyrdom and defence of Serb honour and Christendom against Turks (Muslims). When the Principality of Serbia gained independence from the Ottoman Empire, Orthodoxy became crucial in defining the national identity, instead of language which was shared by other South Slavs (Croats and Muslims).