Makes Query class extendable
Add support to configure custom persister classes