code: public void setPreferredCacheSize(long size) {
          int intSize = (int) size;
          activator.setCachePreferredMaxSize(intSize);
          wrapperManager.setWrapperCacheSize(2 * intSize);
      }
docs: Set the cache size used by this container.
  
  @param size the preferred capacity of the cache