DeDuplication Logic in v4

Hi Folks,

Can someone point me to the message deduplication code in V4 please - I want to look at how the system handles messages from different gateways if some parts of the payload for what appears to be the same valid message (same devId, fCnt) but with different content in the payload.

Thanks
Phil