code: public void enableObjectCacheStats() {
          final String methodName = "enableObjectCacheStats";
          try {
              if (null == _statsInstance) {
                  _iCacheType = TYPE_OBJECT;
  
                  if (tc.isDebugEnabled())
                      Tr.debug(tc, methodName + " Creating statistic for " + _sCacheName + " instance (object cache)");
                  _statsInstance = StatsFactory.createStatsInstance(WSDynamicCacheStats.OBJECT_CACHE_TYPE_PREFIX + _sCacheName, _cacheRootStatsGroup,
                          null, this);
  
                  if (null == _cacheObjectStatsGroup) {
                      if (tc.isDebugEnabled())
                          Tr.debug(tc, methodName + " Creating object cache group" + " for cacheName=" + _sCacheName);
                      _cacheObjectStatsGroup = StatsFactory.createStatsGroup(WSDynamicCacheStats.OBJECT_GROUP, templateCount15, _statsInstance, null,
                              this);
                      _csmObject = new CacheStatsModule(_sCacheName, WSDynamicCacheStats.OBJECT_COUNTERS, _cacheObjectStatsGroup, this);
                  }
  
                  if (_diskOffloadEnabled) {
                      if (_cacheDiskStatsGroup == null) {
                          if (tc.isDebugEnabled())
                              Tr.debug(tc, methodName + " Creating disk group" + " for cacheName=" + _sCacheName);
                          _cacheDiskStatsGroup = StatsFactory.createStatsGroup(WSDynamicCacheStats.DISK_GROUP, templateCount13, _statsInstance, null,
                                  this);
                      }
                      _csmDisk = new CacheStatsModule(_sCacheName, WSDynamicCacheStats.DISK_OFFLOAD_ENABLED, _cacheDiskStatsGroup, this);
                  }
              }
          } catch (StatsFactoryException e) {
              com.ibm.ws.ffdc.FFDCFilter.processException(e, "com.ibm.ws.cache.stat.CacheStatsModule", "176", this);
              if (tc.isDebugEnabled())
                  Tr.debug(tc,
                          methodName + " Exception while enabling object cache stats for" + _sCacheName + " : " + ExceptionUtility.getStackTrace(e));
          }
  
      }
docs: -------------------------------------------------------