Map<String, Object> m = request.asMap();
Integer id = (Integer) m.get("channel");
Channel ch = transport.channel(id);
try {
if (ch != null) {
ch.write(new NettyInteractiveResponse("message", (Map<String, Object>) m.get("message")).response());
// don't send a success message back to the channel
} else {
// delivery failed, channel not present
channel.sendResponse(TYPE, new IOException("channel " + id + " gone"));
}