code: private BeanMetaData getBeanMetaDataInternal()
      {
          J2EEName beanName = _isHome ? (J2EEName) pkey : j2eeName;
  
          // Partially initialized BeanIds have a null home field, but we can still
          // get the partially initialized BeanMetaData from the home record.
          if (home == null) {
              HomeRecord hr = EJSContainer.homeOfHomes.getHomeRecord(beanName);
              return (hr == null) ? null : hr.bmd;
          }
          return home.getBeanMetaData(beanName);
      }
docs: F54184