public void updateMessageContext(String key,MessageContext msgContext) throws SandeshaStorageException {
if(log.isDebugEnabled()) log.debug("Enter: InMemoryStorageManager::updateMessageContext, key: " + key);
Object oldEntry = storageMap.remove(key);
if (oldEntry==null)
throw new SandeshaStorageException (SandeshaMessageHelper.getMessage(
SandeshaMessageKeys.entryNotPresentForUpdating));
storeMessageContext(key,msgContext);
if(log.isDebugEnabled()) log.debug("Exit: InMemoryStorageManager::updateMessageContext, key: " + key);