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