Update OutboundMessageProcessor.cs

add a helper method