docs: @Override
      public Object getPrimaryKey() throws RemoteException
      {
          HomeInternal hi = beanId.getHome();
  
          if (hi.isStatelessSessionHome() || hi.isStatefulSessionHome()) {
              throw new IllegalSessionMethodException();
          } else {
              return beanId.getPrimaryKey();
          }
      }