docs: @Override
      public int getLockMode(Object lockName)
      {
          BeanId beanId = (BeanId) lockName;
  
          // When the number of bean instances is limited, a lock will be
          // obtained for the home bean id to block creation of additional
          // instances... this is an EXCLUSIVE lock.                         PK20648
          if (beanId.isHome())
          {
              if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled())
                  Tr.event(tc, "getLockMode: locking home bean: EXCLUSIVE");
              return LockManager.EXCLUSIVE;
          }
  
          EntityBeanO beanO = null;
  
          beanO = (EntityBeanO) ivContainer.activator.getBean(this, beanId);
  
          if (beanO == null) {
              if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) // d144064
                  Tr.event(tc, "getLockMode: failed to get bean");
              return LockManager.EXCLUSIVE;
          }
  
          return beanO.getLockMode();
  
      }