Jamaica was once the center of piracy for the Caribbean Sea. Then the Brits decided to base a fleet and an Admiralty court in Kingston. The practice died out and the island grew wealthy after about 20 years of trials and hangings.
It is high time the world tried the same thing in Somalia. Move the UN headquarters there and make it a refugee resettlement destination.