enhancing api to allow third party persistence connections to be
defined when creating a session.