ISPN-4667 Query DSL fails to load entity class in Wildfly

https://issues.jboss.org/browse/ISPN-4667