UAE is a sheikhdom that operates as a federal royalty
Basically all of these sheikhs had a separate protection treaties with britain along side with Oman and Eden but as Britain was so broke after WW2 and was borrowing money from the USA wich was behind the end of the British Empire and replaced it in the Persian Gulf so before that the british had decided to withdraw from the arabian peninsula for economical reasons and the sheikhs were against this but finally they made some deals with Aramco and the US who was based then in Saudi Arabia
But prior to their withdrawal from there the british have suggested a union between aden, oman, the current UAE principalities and Qatar and bahrain as a confederation between the South-Eastern Arabian Sheikhdoms basically all the land under their protection.
https://en.m.wikipedia.org/wiki/Trucial_States
https://en.m.wikipedia.org/wiki/Trucial_Oman_Scouts
But only the ones now known as UAE have united with the signing of a constitution that would bind them together. Before that Dubai had more history with qatar than the Abu dhubai.
"Britain's aim, Healey continued, was "to produce a situation in which the local powers can reach agreement on a framework of stability for themselves without the presence of external forces. When we are satisfied that aim [has been] achieved, we shall certainly leave"
.
So these sheikhdoms are now protected by the western Petroleum Companies and are not like Somalia where no Economal interests.
Britain arrangements in the South and Eastern Arabia looks similar to their role in the unity between the North and South Somalia as the Somaliland State was waiting to united with the South based on the british arrangements, infact the british wanted to unite the whole 5 somalis except djibouti if the south accepts to be under their trusteeship instead of italy. Nevertheless i think SYL made good decision to kick out the british from koonfur bc they were allied with Ethiopia while italey has added to Somalia parts of zanzibar like kismayo and the bajuni islands claiming that they were banaadiri stock.
swiss is also irrelevant to Somalia bc its federalism is based on languages.
Tanzania and zanzibar model suits Somalia.