LogicalThreadID logicalThreadID = new LogicalThreadID(new OneThreadID[]{new OneThreadID(0, threadId.getBytes())});
ServiceContext serviceContexts[] = new ServiceContext[]{new ServiceContext(4, marshalLogicalThreadID(logicalThreadID))};
int messageType = MsgType_1_1.Reply_value;
marshal.writeObject(__ReplyHeader_1_2TypeDescription,
new ReplyHeader_1_2(requestId,
exception ? ReplyStatusType_1_2.USER_EXCEPTION : ReplyStatusType_1_2.NO_EXCEPTION,
serviceContexts)
);
if(exception) {