code: public void messageReceived (MessageEvent event)
      {
          if (CHAT_NOTIFICATION.equals(event.getName())) {
              ChatMessage msg = (ChatMessage)event.getArgs()[0];
              String localtype = getLocalType(event.getTargetOid());
              processReceivedMessage(msg, localtype);
          }
      }
docs: documentation inherited