Automating Judicial Document Drafting: A Discourse-Based Approach