adding a method to access querytranslator in queryresultwriter class