code: @Override
      public Object getPrimaryKey() throws RemoteException
      {
          HomeInternal hi = beanId.getHome();
  
          if (hi.isStatelessSessionHome() || hi.isStatefulSessionHome()) {
              throw new IllegalSessionMethodException();
          } else {
              return beanId.getPrimaryKey();
          }
      }
docs: Get the primary key associated with this wrapper. <p>
  
  This method is part of the EJBObject interface. <p>
  
  @return an <code>Object</code> containing primary key of
  this wrapper <p>