code: protected synchronized void addResourceContext(ResourceContext resourceContext, ControlBean bean)
      {
          if (!resourceContext.hasResources())
              _resourceContexts.push(resourceContext); 
      }
docs: Adds a new managed ResourceContext to the ControlContainerContext.  This method
  is used to register a resource context that has just acquired resources
  @param resourceContext the ResourceContext service that has acquired resources
  @param bean the acquiring ControlBean.  Unused by the base implementation, but
  available so subclassed containers can have access to the bean.