//search for jcache api jar on classpath
final String localClassName = "javax.cache.Caching";
ClassLoader classLoader = nodeEngine.getConfigClassLoader();
Class theClass = ClassLoaderUtil.loadClass(classLoader, localClassName);
if (theClass != null) {
NodeExtension nodeExtension = nodeEngine.getNode().getNodeExtension();
Object serviceObject = nodeExtension.createService(ICacheService.class);
registerService(ICacheService.SERVICE_NAME, serviceObject);
}
} catch (ClassNotFoundException e) {
logger.finest("javax.cache api is not detected on classpath. Skipping CacheService...");
}