Cübbeli beyefendi, hukuk tarihi