▁gained ▁complete ▁independence , ▁but ▁with ▁smaller ▁territ ories . ▁ ▁In ▁ 1 8 7 8 , ▁Austria - H ung ary ▁un il ater ally ▁occupied ▁the ▁Ott oman ▁provinces ▁of ▁Bos nia - Her z egov ina ▁and ▁Nov i ▁Paz ar , ▁but ▁the ▁Ott oman ▁government ▁cont ested ▁this ▁move ▁and ▁maintained ▁its ▁troops ▁in ▁both ▁provinces . ▁The ▁st alem ate ▁last ed ▁for ▁ 3 0 ▁years ▁( A ust rian ▁and ▁Ott oman ▁forces ▁co ex isted ▁in ▁Bos nia ▁and ▁Nov i ▁Paz ar ▁for ▁three ▁dec ades ) ▁until ▁ 1 9 0 8 , ▁when ▁the ▁Aust ri ans ▁took ▁advantage ▁of ▁the ▁political ▁tur mo il ▁in ▁the ▁Ott oman ▁Empire ▁that ▁stem med ▁from ▁the ▁Young ▁Turk ▁Revolution ▁and ▁an nex ed ▁Bos nia - Her z egov ina , ▁but ▁pulled ▁their ▁troops ▁out ▁of ▁Nov i ▁Paz ar ▁in ▁order ▁to ▁reach ▁a ▁comprom ise ▁and ▁avoid ▁a ▁war ▁with ▁the ▁Tur ks . ▁ ▁In ▁return ▁for ▁British ▁Prime ▁Minister ▁Benjamin ▁Dis ra eli ' s ▁advoc acy ▁for ▁rest oring ▁the ▁Ott oman ▁territ ories ▁on ▁the ▁B alk an ▁Pen ins ula ▁during ▁the ▁Congress ▁of ▁Berlin , ▁Britain ▁assumed ▁the ▁administration ▁of ▁Cy pr us ▁in ▁ 1 8 7 8 ▁and ▁later ▁sent ▁troops ▁to ▁Egypt ▁in ▁ 1 8 8 2 ▁with ▁the ▁pre text ▁of ▁helping ▁the ▁Ott oman ▁government ▁to ▁put ▁down ▁the ▁U rab i ▁Revol t ; ▁effectively