}
void notifyMessageListeners(Message message, boolean incoming) {
for (MessageListener messageListener : messageListeners) {
try {
messageListener.handle(new MessageEvent(this, message, incoming));
} catch (Exception e) {
logger.log(Level.WARNING, e.getMessage(), e);
}
}
}