code: public BaseMessageFilter addRemoteMessageFilter(BaseMessageFilter messageFilter, RemoteSession remoteSession) throws RemoteException
      {
          BaseTransport transport = this.createProxyTransport(ADD_REMOTE_MESSAGE_FILTER);
          transport.addParam(FILTER, messageFilter);   // Don't use COMMAND
          String strSessionPathID = null;
          if (remoteSession instanceof BaseProxy)
          {   // Always a SessionProxy
              strSessionPathID = ((BaseProxy)remoteSession).getIDPath();
          }
          transport.addParam(SESSION, strSessionPathID);
          Object strReturn = transport.sendMessageAndGetReply();
          Object objReturn = transport.convertReturnObject(strReturn);
          return (BaseMessageFilter)objReturn;
      }
docs: Add a message filter to this remote receive queue.
  @param messageFilter The message filter to add.
  @param remoteSession The remote session.
  @return The filter ID.