public virtual Msg ReplyFromServer() { int queryResultID = ReadInt(); int fetchSize = ReadInt(); int fetchDepth = ReadInt(); MsgD message = null; lock (ContainerLock()) { IIntIterator4 idIterator = Stub(queryResultID).IdIterator(); ByteArrayBuffer payload = ObjectExchangeStrategyFactory.ForConfig(new ObjectExchangeConfiguration (fetchDepth, fetchSize)).Marshall((LocalTransaction)Transaction(), idIterator, fetchSize ); message = IdList.GetWriterForBuffer(Transaction(), payload); } return(message); }