Trying to isolate the problem where the Hibernate doesn't load entities from the non-JAR path.
Added support to temporarily change the class loader for the current thread in Factories only.
Added support for mocking out any factory.