remote.update(message, new IncomingCallback(message));
} else if (message.getChildElement("ping", XmppNamespace.NAMESPACE_WAVE_SERVER) != null) {
// Respond inline to the ping.
LOG.info("Responding to ping from: " + message.getFrom());
Message response = XmppUtil.createResponseMessage(message);
response.addChildElement("received", XmppNamespace.NAMESPACE_XMPP_RECEIPTS);
transport.sendPacket(response);
} else {
sendErrorResponse(message, FederationError.Code.BAD_REQUEST, "Unhandled message type");
}
}