What's the difference between a good lawyer and a great lawyer?

A good lawyer knows the law, but a great lawyer knows the judge.