The role of the lawyer varies greatly across legal jurisdictions, and so it can be treated here in only the most general terms.