import org.w3c.dom.Node;
import org.apache.cxf.common.util.PropertyUtils;
public final class MessageUtils {
private MessageUtils() {
}
<BUG>public static boolean isOutbound(Message message) {
return message != null

&& message.getExchange() != null
&& (message == message.getExchange().getOutMessage()
|| message == message.getExchange().getOutFaultMessage());</BUG>
}

import org.w3c.dom.Node;
import org.apache.cxf.common.util.PropertyUtils;
public final class MessageUtils {
private MessageUtils() {
}
public static boolean isOutbound(Message message) {
if (message == null) {
return false;
}
Exchange exchange = message.getExchange();
return exchange != null
&& (message == exchange.getOutMessage() || message == exchange.getOutFaultMessage());
}
