Refactored the MessageMetadataRegistry class. Facilitated to remove the un-necessary warning which is displayed when a 3.x endpoint publishes an event which is an interface, where the 3.x endpoint added an __impl to the event type in the header. Relates to #1834
Fixed the variable names for metadata. Relates to #1834