class ContextUtils {

    public static boolean isOutbound(Message message) {
        Exchange exchange = message.getExchange();
        return exchange != null
               && message == exchange.getOutMessage();
    }

    private  ContextUtils();

}