Service svc = cluster.ensureService("OPSDistributedCache"
, CacheService.TYPE_DISTRIBUTED);
logger.log(Level.INFO, "Service name: " + svc.getInfo().getServiceName());
logger.log(Level.INFO, "Serializer name: " + svc.getSerializer().getClass().getName());
*/
NamedCache cache = CacheFactory.getCache(CACHE_NAME);
logger.log(Level.INFO, "Publishing shipment: id = {0}", shipment.getId());
logger.log(Level.INFO, "Cache name: " + cache.getCacheName());
logger.log(Level.INFO, "Service name: " + cache.getCacheService().getInfo().getServiceName());
cache.put(shipment.getId(), shipment);
logger.log(Level.INFO, "After adding to cache");
}