};
bus.addPostInitTask(busReadyEvent);
if (!bus.isSubscribed(CDI.CLIENT_DISPATCHER_SUBJECT)) {
bus.subscribe(CDI.CLIENT_DISPATCHER_SUBJECT, new MessageCallback() {
public void callback(Message message) {
switch (CDICommands.valueOf(message.getCommandType())) {
case RemoteSubscribe:
CDI.addRemoteEventTypes(message.get(String[].class, MessageParts.Value));
bus.addPostInitTask(new Runnable() {