StoredMessage<?> message = _store.getMessage(messageId);
if(message != null)
{
StorableMessageMetaData metaData = message.getMetaData();
@SuppressWarnings("rawtypes")
MessageMetaDataType type = metaData.getType();
@SuppressWarnings("unchecked")
ServerMessage<?> serverMessage = type.createMessage(message);
ref = serverMessage.newReference();
_recoveredMessages.put(messageId, ref);
}
}