GRAILS-8237 added check to see if the datasource matches the session factory; still broken if the domain classes uses more than one datasource though