code: private static byte getBeanType(BeanMetaData bmd, boolean isHome) // d621921
      {
          // 621921 - Always use BeanMetaData to decide which bean type id to use.
  
          if (isHome) // d621921
          {
              // Note: EJBFactory (EJBLink) does not support module versioning.
              if (bmd != null && bmd._moduleMetaData.isVersionedModule()) // F54184
              {
                  return HOME_BEAN | MODULE_VERSION_CAPABLE;
              }
              return HOME_BEAN;
          }
  
          byte typeId = TYPE_TO_TYPE_ID_MAP[bmd.type];
          if (bmd.usesBeanManagedTx)
          {
              typeId |= USES_BEAN_MANAGED_TX;
          }
          if (bmd._moduleMetaData.isVersionedModule()) // F54184
          {
              typeId |= MODULE_VERSION_CAPABLE;
          }
          return typeId;
      }
docs: Returns the bean type id for serialization.
  
  @param bmd the non-null bean metadata
  @param isHome true if for the home instance
  @return the type id