The legal escape route for Muhammad Rizalman bin Ismail has not been updated for more than 50 years.
The Malaysian diplomat's right to immunity was based on provision 29 of the Vienna Convention, which states, among other things, that diplomats must be free to perform their duties without threat of arrest, and have immunity from civil or criminal prosecution.
The genesis of the current convention can be found in the Congress of Vienna; a meeting of ambassadors from Europe who convened in the city in 1814-15 to help formulate a plan for long-term peace in the region after the Napoleonic wars.
"A lot of international law evolved through this congress; laws that were designed to stop countries from going to war," explains Steve Hoadley, associate professor of politics and international relations at the University of Auckland.
The laws established in 1814-15 were further refined in 1928 in Havana with the Convention Regarding Diplomatic Officers.