#926 - Make usage of the special query building more available to CustomPersistenceHandler instances that call getPersistentRecords() and getTotalRecords(). Make filtering of records in the special collection more flexible as well.