getValue() method added to MessageState