Lewald, Hans, jurist