AttachClientMessage acm = (AttachClientMessage) message;
listener.get().handleAttach(acm.getMessageID(),
acm.getClientType(),
acm.getProperties());
} else if (message instanceof DetachClientMessage) {
DetachClientMessage dcm = (DetachClientMessage) message;
listener.get().handleDetach(dcm.getClientID(), false);
}
}