hibernate/hibernate-orm — pull request #249 by stliu (2012-01-12 19:48:16+00:00)
Title: HHH-6964 Audit Strategy class can't be found by Thread.currentThread().getContextClassLoader() under AS7

when using hibernate natively ( with _org.hibernate_ module as a dependency) in AS7, there is a CNF will be thrown by envers.

because envers was using `Thread.currentThread().getContextClassLoader().loadClass(auditEntCfg.getAuditStrategyName());` to load class, and this doesn't work in AS7

this pull request changes it to use ClassLoaderService when it is available which fixes this issue