code: public void add(EJSWrapperBase wrapper, BeanO bean)
      {
          final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
          if (isTraceOn && tc.isEntryEnabled())
              Tr.entry(tc, "add(" + Util.identity(wrapper) + ", " + bean + ")");
  
          poll();
  
          WeakReference<EJSWrapperBase> key = new WeakReference<EJSWrapperBase>(wrapper, ivRefQueue);
          synchronized (ivCache)
          {
              ivCache.put(key, bean);
          }
  
          if (isTraceOn && tc.isEntryEnabled())
              Tr.exit(tc, "add : key = " + key);
      }
docs: Add a ManagedBean instance (held in a BeanO) to this weak reference
  cache, keyed by the wrapper instance associated with it. <p>
  
  @param wrapper object representing a wrapper for the managed bean
  @param bean ManagedBean context, which holds the ManagedBean instance