// kunderaMetadata.getApplicationMetadata().addEntityMetadata(pu,
// clazz, mAdd);
PersistenceUnitMetadata puMetadata = kunderaMetadata.getApplicationMetadata()
.getPersistenceUnitMetadata(pu);
CoreMetadata coreMetadata = new CoreMetadata();
coreMetadata.setLazyInitializerFactory(new CglibLazyInitializerFactory());
kunderaMetadata.setCoreMetadata(coreMetadata);
String client = puMetadata.getProperties().getProperty(PersistenceProperties.KUNDERA_CLIENT_FACTORY);
if (client.equalsIgnoreCase("com.impetus.client.cassandra.pelops.PelopsClientFactory")
|| client.equalsIgnoreCase("com.impetus.client.cassandra.thrift.ThriftClientFactory"))