docs: public boolean isIdentical(EJBLocalObject obj) throws javax.ejb.EJBException
      {
          // d114925 begin
          HomeInternal hi = beanId.getHome();
  
          if (hi.isStatefulSessionHome()) {
              // Session 6.9.1 - Stateful Session Bean
              //  session beans are identical if they are referring to the bean
              //  created with the same BeanId
              return (beanId.equals(((EJSLocalWrapper) obj).beanId));
  
          } else if (hi.isStatelessSessionHome()) {
              // Session 6.9.2 - Stateless Session Bean
              //  all session objects of the same stateless session bean within the
              //  same home have the same object identity.
              BeanId thisHomeId = hi.getId();
              BeanId cmpHomeId = ((EJSLocalWrapper) obj).beanId.getHome().getId();
              return (thisHomeId.equals(cmpHomeId));
  
          } else {
              // d114925 end
              // Session 9.8 - Entity Bean
              return this.getPrimaryKey().equals(obj.getPrimaryKey());
  
          } // d114925
      }