Add support to configure custom persister classes