support for Element in wrapWithNotificationMessage