Changes made to get all metadata between firstMsgId and lastMsgID in Hec...

...tor based implementation