adding a method to get queryresultwriter from runner