if(getInfoGluePrincipal() == null)
return ERROR;
VisualFormatter vf = new VisualFormatter();
String convertedMessage = this.message.replaceAll("(\r\n|\n\r|\r|\n)", "<br />");;
convertedMessage = vf.escapeJSON(convertedMessage).replaceAll("\"", "");
chat.addMessage(this.getUserName(), CHAT_MESSAGE_TYPE, convertedMessage);
if(this.isSystemMessage)
{
systemMessagesChat.addMessage(this.getUserName(), SYSTEM_MESSAGE_TYPE, "openChat('" + convertedMessage + "');");