try {
String string = StringByteBufferConverter.decodeToString (data);
Message message = new Message (string);
ActionListener listener = listenerMap.get (message.getMessageType ());
if (listener != null) {
listener.process (message);
}
} catch (ParseException ex) {
logger.log (Level.SEVERE, "", ex);
}
}