The integration of retrieval, reasoning and drafting for refugee law: a third generation legal knowledge based system