Added a protocol method to allow overriding of isOutgoingMessage