}
if ((clientObj != null) && (clientObj instanceof String)) {
clientMsg = (String)clientObj;
// send message to UI
_eventMsgReceived.fireEvent(new MsgReceivedEvent(this, clientMsg, _clientID));
clientObj = null;
}
// write to client
while (!_msgQueue.isEmpty()) {