code: public void sendGeolocation(GeoLocation geoLocation)
              throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException, NotALeafNodeException {
          getNode().publish(new PayloadItem<GeoLocation>(geoLocation));
      }
docs: Send geolocation through the PubSub node.
  
  @param geoLocation
  @throws InterruptedException
  @throws NotConnectedException
  @throws XMPPErrorException
  @throws NoResponseException
  @throws NotALeafNodeException