.get(PersistenceProperties.KUNDERA_CACHE_PROVIDER_CLASS);
cacheProviderClassName = cacheProviderClassName != null ? cacheProviderClassName : puMetadata
.getProperty(PersistenceProperties.KUNDERA_CACHE_PROVIDER_CLASS);
CacheProvider cacheProvider = null;
if (cacheProviderClassName != null)
{
try
{
Class<CacheProvider> cacheProviderClass = (Class<CacheProvider>) Class.forName(cacheProviderClassName);
cacheProvider = cacheProviderClass.newInstance();
cacheProvider.init(classResourceName);
}
catch (ClassNotFoundException e)
{
throw new CacheException("Could not find class " + cacheProviderClassName
+ ". Check whether you spelled it correctly in persistence.xml", e);