code: @Override
      public EJBLocalObject getEJBLocalObject() throws java.lang.IllegalStateException
      {
          EJBLocalObject result = null;
  
          // d367572.1 start
          if (state == PRE_CREATE || state == DESTROYED)
          {
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                  Tr.debug(tc, "Incorrect state: " + getStateName(state));
              throw new IllegalStateException(getStateName(state));
          }
          // d367572.1 end
  
          try
          {
              result = container.wrapperManager.getWrapper(beanId).getLocalObject();// d156807.1
          } catch (IllegalStateException ise) { // d116480
              // FFDC not logged for this spec required scenario
              throw ise;
          } catch (Throwable ex) {
              // p113724
              // Not expecting any Throwable to occur. Log unexpected Throwable and
              // throw a ContainerEJBException since this is a Java EE architected interface.
              FFDCFilter.processException(ex, CLASS_NAME + ".getEJBLocalObject", "236", this);
              ContainerEJBException cex = new ContainerEJBException("getEJBLocalObject() failed",
                              ex);
              Tr.error(tc
                       , "CAUGHT_EXCEPTION_THROWING_NEW_EXCEPTION_CNTR0035E"
                       , new Object[] { ex, cex.toString() }); // d194031
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) // d144064
                  Tr.debug(tc, "getEJBLocalObject() failed", ex);
              throw cex;
          }
  
          return result;
      }
docs: d111408, d112442 start
  Get the EJBLocalObject for this <code>BeanO</code>. In the EJS,
  the <code>EJBLocalObject</code> is the <code>EJSLocalWrapper</code>. <p>