The lawyer tried to curry favor with the judge.
It's silly to curry favor with the boss. Just act yourself.