if (log.isDebugEnabled()) log.debug("RemotePlugin:("+me+") Got message: "+requestName+":"+root.toString());
if (log != null && log.isDebugEnabled()) log.debug("RemotePlugin:("+me+") Got message: "+requestName+":"+root.toString());
  private void receiveMessage(AggRelay relay) {    try {      XMLMessage xmsg = (XMLMessage)relay.getContent();      if (log.isDebugEnabled()) log.debug("RemotePlugin:("+me+") receiveMessage "+xmsg);            Element root = XmlUtils.parse(xmsg.getText());      String requestName = root.getNodeName();      if (log.isDebugEnabled()) log.debug("RemotePlugin:("+me+") Got message: "+requestName+":"+root.toString());      if (requestName.equals("transient_query_request"))      {        transientQuery(root, relay);      }      else if (requestName.equals("push_request"))      {        createPushSession(root, relay);      }      else if (requestName.equals("update_request"))      {        returnUpdate(root);      }      else if (requestName.equals("pull_request"))      {        createPullSession(root, relay);      }    } catch (Exception ex) {      ex.printStackTrace();    }  }