ISPN-3496 Infinispan library breaks Hibernate 2LC with ClassCastException