public void messageReceived(WonderlandClientSender sender,
WonderlandClientID clientID,
Message message)
{
if (message instanceof AttachClientMessage) {
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);
}
}