added populateResultWithDocuments() to processtools to handle all resultsets