ISPN-3496 Infinispan library breaks Hibernate 2LC with ClassCastException

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