// getCacheManager will return null, which is fine, since PentahoCacheSessionListener
// should have cleaned up the session scoped caches. If the cacheManager
// has been created with global scope, getCacheManager will return a non-null instance.
ICacheManager cacheManager = PentahoSystem.getCacheManager( null );
if ( cacheManager != null ) {
cacheManager.cacheStop();
}
}
}