The role of the legal advisor in diplomacy