log.debug(title + "restoring message context .....");
restoredMessageContext = false;
msgContext2 = (MessageContext) inObjStream.readObject();
inObjStream.close();
inStream.close();
msgContext2.activate(mc1.getConfigurationContext());
// no exceptions, set restoredMessageContext to true
restoredMessageContext = true;
// VERY IMPORTANT: replace testcase's messagecontext object with the new restored one