code: protected final void homeEnabled()
      {
          if (!enabled)
          {
              // Provide some meaningful message text.                        d350987
              String msgTxt =
                              "The referenced version of the " + j2eeName.getComponent() +
                                              " bean in the " + j2eeName.getApplication() +
                                              " application has been stopped and may no longer be used. " +
                                              "If the " + j2eeName.getApplication() +
                                              " application has been started again, a new reference for " +
                                              "the new image of the " + j2eeName.getComponent() +
                                              " bean must be obtained. Local references to a bean or home " +
                                              "are no longer valid once the application has been stopped.";
  
              if (beanMetaData.ivModuleVersion < BeanMetaData.J2EE_EJB_VERSION_3_0)
              {
                  throw new HomeDisabledException(msgTxt);
              }
  
              // For EJB 3.0+, throw a more meaningful exception that is in
              // the com.ibm.websphere (public) package. Some applications may wish
              // to watch for this, and reset local references.               d350987
              throw new EJBStoppedException(msgTxt);
          } else if (!ivApplicationStarted) {
              // Ensure that the application has completed startup processing or that
              // the EJB work is being attempted on the same thread that is being used to
              // start the application.   This method will throw an ApplicationNotStartedException
              // if any of the criteria are not met.  It will also return "false" until the
              // application has completed startup processing.   In this way we will continue
              // to do this checking only until the application has started.s
              ivApplicationStarted = beanMetaData._moduleMetaData.getEJBApplicationMetaData().checkIfEJBWorkAllowed(beanMetaData._moduleMetaData); // F743-4950 d607800.CodRv
          }
  
      }
docs: Throw a runtime exception if this home is not open for business.