} else if (encoding.canEncodeBinary(o.getClass())) {
WebSockets.sendBinary(encoding.encodeBinary(o), webSocketChannel, callback);
} else {
// TODO: Replace on bug is fixed
// https://issues.jboss.org/browse/LOGTOOL-64
throw new EncodeException(o, "No suitable encoder found");
}
} catch (EncodeException e) {
throw new RuntimeException(e);
}
}