/**
   * Creates MBean;
   *
   * @param cctx Cache context.
   */
  GridCacheMBeanAdapter(GridCacheContext<?, ?> cctx) {
    assert cctx != null;

    this.cctx = cctx;

    if (cctx.isNear()) dhtCtx = cctx.near().dht().context();

    if (cctx.config().isWriteFromBehindEnabled())
      store = (GridCacheWriteFromBehindStore) cctx.cacheStore();
  }