BPMSPL-94 - refactoring for task/audit/process instance rich queries