anchor.diff:                                                     graphic.attributes.weight,
                                                      graphic.attributes.light,
                                                      graphic.attributes.distance);
  -              console.log("Have built popupContent");
                 popup.setContent(popupContent);
                 popup.show(point);
               }
  
positive.code:       function createGraphic(trainId, payload) {
          var graphic = null;
          var pms = null;
          console.log("In createGraphic, payload is " + JSON.stringify(payload));
          var point = new esri.geometry.Point(payload.location.longitude,
                                              payload.location.latitude,
                                              new esri.SpatialReference({
  
negative.code:     // The following function has to be global so it can be referenced in
      // the Popup content.
      function publishStartCommand(trainId) {
        var topic = "TrainDemo/train/" + trainId + "/command";
        startMessage.destinationName = topic;
        mqttClient.send(startMessage);
  