code: @Override
      public BeanO createBeanO(EJBThreadData threadData, ContainerTx tx, BeanId id)
                      throws RemoteException
      {
          J2EEName homeKey = id.getJ2EEName(); // d366845.3
          HomeRecord hr = homesByName.get(homeKey); // d366845.3
  
          BeanO result = null; // d199071
          if (hr != null) { // d199071
              result = hr.beanO; // d199071
          }
  
          if (result == null)
          {
              // This will only ever occur when an attempt is being made to
              // invoke a method on a home wrapper, where the home has been
              // uninstalled since the wrapper was obtained. Doing nothing
              // would result in an NPE, so instead, a meaningful exception
              // should be reported.                                          d547849
              // If HR exists, but no beanO, then the application was started
              // again, but the bean hasn't started yet, still an error.      d716824
              String msgTxt =
                              "The referenced version of the " + homeKey.getComponent() +
                                              " bean in the " + homeKey.getApplication() +
                                              " application has been stopped and may no longer be used. " +
                                              "If the " + homeKey.getApplication() +
                                              " application has been started again, a new reference for " +
                                              "the new image of the " + homeKey.getComponent() +
                                              " bean must be obtained. Local references to a bean or home " +
                                              "are no longer valid once the application has been stopped.";
  
              throw new EJBStoppedException(msgTxt);
          }
  
          return result;
      }
docs: Added ContainerTx d168509