final Runnable busReadyEvent = new Runnable() {
public void run() {
MessageBuilder.createMessage().toSubject("cdi.event:Dispatcher").command(CDICommands.AttachRemote).done()
.sendNowWith(bus);
CDI.fireEvent(new BusReadyEvent());
}
};
bus.subscribe("cdi.event:ClientDispatcher", new MessageCallback() {