return null;
}
@SuppressWarnings("unchecked")
public static Cache getCacheFromFactory(String serviceFactory){
CacheFactory factory = null;
Class<CacheFactory> clazz = null;
try {
clazz = (Class<CacheFactory>) Class.forName(serviceFactory);
factory = clazz.newInstance();
return factory.createCache();
} catch (ClassNotFoundException e) {
e.printStackTrace();
LOG.log(Level.WARNING,
"ClassNotFoundException when loading cache factory class "
+ serviceFactory + " Message: " + e.getMessage());