code: final protected ServletBeanContext getServletBeanContext()
      {
          if (_beanContext == null)
          {
              ControlContainerContext ccc = ControlThreadContext.getContext();
              if (! (ccc instanceof ServletBeanContext))
                  throw new IllegalStateException("No ServletBeanContext available");
  
              _beanContext = (ServletBeanContext)ccc;
          }
          return _beanContext;
      }
docs: This method retrieves the current ServletBeanContext for the service.  It is capable
  of reassociating with the current active context, if the service instance has been
  serialized/deserialized.