Java sample implementation of the MQTT client